定制 kenarkose/files 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kenarkose/files

最新稳定版本:2.0.4

Composer 安装命令:

composer require kenarkose/files

包简介

Easy media management for Laravel 5

README 文档

README

Easy media management for Laravel 5.

Build Status Total Downloads Latest Stable Version License

Features

  • Compatible with Laravel 5
  • Clean API for media management
  • Media substitution (for audio and video files)
  • Recursive Directories for containing media
  • Building blocks for easy
  • Auto determination of media types and STI (Single Table Inheritance) based media models
  • Customization options for file mime types and media models
  • Generator for default migrations
  • A phpunit test suite for easy development

Installation

Installing Files is simple.

  1. Pull this package in through Composer.

    {
        "require": {
            "kenarkose/files": "~2.0"
        }
    }
  2. In order to register Files Service Provider add Kenarkose\Files\Provider\FilesServiceProvider::class to the end of providers array in your config/app.php file.

    'providers' => array(
    
        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        ...
        Kenarkose\Files\Provider\FilesServiceProvider::class,
    
    ),
  3. In order to persist the media, directory and substitute information, you have to create migrations for models. To do so, use the following command.

        php artisan files:migration

    Do not forget to migrate the database when prompted to or after modifying the generated migration file.

  4. Finally, you may configure the default behaviour of Files by publishing and modifying the configuration file. To do so, use the following command.

    php artisan vendor:publish

    Then, you will find the configuration file on the config/files.php path. Additional information about the options can be found in the comments of this file. All of the options in the config file are optional, and falls back to default if not specified; remove an option if you would like to use the default.

  5. Please check the tests and source code for further documentation.

Customization and Extension

Files plays well with its sibling packages:

  • Ownable Easy ownership for Eloquent Models.
  • Transit Easy file uploading and downloading.

Please check the package documentations to implement the functionality.

License

Files is released under MIT License.

统计信息

  • 总下载量: 750
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-29