shawnsandy/laravel-install-kit

一个简单的启动包,用于创建composer包,基于php-league skelton


README

Latest Version on Packagist Software License Build Status Total Downloads StyleCI SensioLabsInsight

这是一个简单的Laravel PHP工具包,其中包含并安装了我经常需要的Laravel包,以便快速启动Laravel项目。它取代了像laravel-hackaton-starter https://github.com/unicodeveloper/laravel-hackathon-starter这样的启动包,尽管这些启动包并不差,但我更喜欢在Laravel laravel new blogcomposer create-project --prefer-dist laravel/laravel blog的新安装之上自己动手,这样让我保持理智 ;-)

 "require": {
   "php": ">=5.5.9",
       "barryvdh/laravel-debugbar": "^2.2",
       "laravelcollective/html": "^5.2",
       "doctrine/dbal": "^2.5",
       "barryvdh/laravel-ide-helper": "^2.1",
       "maatwebsite/excel": "^2.1",
       "spatie/laravel-analytics": "^1.3",
       "spatie/laravel-medialibrary": "^3.17",
       "spatie/laravel-permission": "^1.3",
       "spatie/laravel-authorize": "^1.1",
       "spatie/geocoder": "^2.1",
       "mpociot/laravel-test-factory-helper": "^0.2.0",
       "laravel/socialite": "^2.0",
       "spatie/googlesearch": "^2.0",
       "styde/html": "~1.1",
       "laracasts/utilities": "^2.1",
       "jeroen-g/laravel-packager": "^1.5",
       "laracasts/flash": "^2.0",
       "laracasts/generators": "^1.1",
       "cviebrock/eloquent-sluggable": "^3.1",
       "rap2hpoutre/laravel-log-viewer": "^0.6.0",
       "vinkla/hashids": "^2.2",
       "spatie/activitylog": "^2.4",
       "mews/purifier": "^2.0",
       "mcamara/laravel-localization": "^1.1",
       "barryvdh/laravel-elfinder": "^0.3.7",
       "greggilbert/recaptcha": "^2.1",
       "sven/artisan-view": "^1.0",
       "fedeisas/laravel-mail-css-inliner": "^1.4",
       "davejamesmiller/laravel-breadcrumbs": "^3.0",
       "sofa/revisionable": "^5.2",
       "graham-campbell/exceptions": "^8.4",
       "filp/whoops": "^2.1",
       "ipunkt/laravel-analytics": "^1.1",
       "anahkiasen/former": "^4.0",
       "proengsoft/laravel-jsvalidation": "^1.3",
       "evercode1/view-maker": "^3.4",
       "drawmyattention/laravel-make-resource": "~1.0",
       "anahkiasen/underscore-php": "^2.0","jeroen-g/laravel-packager": "^1.5",
       "arrilot/laravel-widgets": "^3.4"

  },

开发包自行安装

    "laracasts/generators": "^1.1"

安装

通过Composer

    $ composer require shawnsandy/laravel-install-kit

服务提供者 config/app.php -- providers

$providers => [

    /*
    * Vendor Service Providers
    */
    Laravel\Socialite\SocialiteServiceProvider::class,
    Barryvdh\Debugbar\ServiceProvider::class,
    Collective\Html\HtmlServiceProvider::class,
    Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
    Maatwebsite\Excel\ExcelServiceProvider::class,
    Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider::class,
    Spatie\Authorize\AuthorizeServiceProvider::class,
    Spatie\Permission\PermissionServiceProvider::class,
    Spatie\MediaLibrary\MediaLibraryServiceProvider::class,
    Spatie\Geocoder\GeocoderServiceProvider::class,
    Spatie\Activitylog\ActivitylogServiceProvider::class,
    Mpociot\LaravelTestFactoryHelper\TestFactoryHelperServiceProvider::class,
    Styde\Html\HtmlServiceProvider::class,
    Cviebrock\EloquentSluggable\SluggableServiceProvider::class,
    Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
    Vinkla\Hashids\HashidsServiceProvider::class,
    Mews\Purifier\PurifierServiceProvider::class,
    Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class,
    Barryvdh\Elfinder\ElfinderServiceProvider::class,
    Greggilbert\Recaptcha\RecaptchaServiceProvider::class,
    Sven\ArtisanView\ArtisanViewServiceProvider::class,
    Vinkla\Hashids\HashidsServiceProvider::class,
    Fedeisas\LaravelMailCssInliner\LaravelMailCssInlinerServiceProvider::class,
    DaveJamesMiller\Breadcrumbs\ServiceProvider::class,
    Kris\LaravelFormBuilder\FormBuilderServiceProvider::class,
    JeroenG\Packager\PackagerServiceProvider::class,
    Sofa\Revisionable\Laravel\ServiceProvider::class,
    GrahamCampbell\Exceptions\ExceptionsServiceProvider::class,
    Ipunkt\LaravelAnalytics\AnalyticsServiceProvider::class,
    Sven\EnvProviders\EnvServiceProvider::class,
    Prettus\Repository\Providers\RepositoryServiceProvider::class,
    InfyOm\Generator\InfyOmGeneratorServiceProvider::class,
    InfyOm\CoreTemplates\CoreTemplatesServiceProvider::class,
    Former\FormerServiceProvider::class,
    Proengsoft\JsValidation\JsValidationServiceProvider::class,
    Evercode1\ViewMaker\ViewMakerServiceProvider::class,
    Arrilot\Widgets\ServiceProvider::class,
    Nwidart\Modules\LaravelModulesServiceProvider::class,

    ]

别名 config/app.php -- aliases

$aliases => [

    /*
     * Vendor aliases
     */
    'Debugbar' => Barryvdh\Debugbar\Facade::class,
    'Html' => Collective\Html\HtmlFacade::class,
    'Geocoder' => Spatie\Geocoder\GeocoderFacade::class,
    'LaravelAnalytics' => Spatie\LaravelAnalytics\LaravelAnalyticsFacade::class,
    'Excel' => Maatwebsite\Excel\Facades\Excel::class,
    'Alert' => Styde\Html\Facades\Alert::class,
    'Field' => Styde\Html\Facades\Field::class,
    'Menu' => Styde\Html\Facades\Menu::class,
    'Hashids' => Vinkla\Hashids\Facades\Hashids::class,
    'Purifier' => Mews\Purifier\Facades\Purifier::class,
    'LaravelLocalization'   => Mcamara\LaravelLocalization\Facades\LaravelLocalization::class,
    'Recaptcha' => Greggilbert\Recaptcha\Facades\Recaptcha::class,
    'Hashids' => Vinkla\Hashids\Facades\Hashids::class,
    'Tracker' => PragmaRX\Tracker\Vendor\Laravel\Facade::class,
    'Breadcrumbs' => DaveJamesMiller\Breadcrumbs\Facade::class,
    'FormBuilder' => Kris\LaravelFormBuilder\Facades\FormBuilder::class,
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
    'Analytics' => Ipunkt\LaravelAnalytics\AnalyticsFacade::class,
    'Former' => 'Former\Facades\Former',
    'JsValidator' => Proengsoft\JsValidation\Facades\JsValidatorFacade::class,
    'Widget'       => Arrilot\Widgets\Facade::class,
    'AsyncWidget'  => Arrilot\Widgets\AsyncFacade::class,
    'Module' => Nwidart\Modules\Facades\Module::class,


    ]

中间件

    protected $middleware = [
        //...
        \Styde\Html\Alert\Middleware::class,
        //...
    ];

中间件(路由) app/Http/Kernel.php

protected $routeMiddleware = [
  ...
  'can' => \Spatie\Authorize\Middleware\Authorize::class,

];

服务提供者

    /**
       * Register any application services.
       *
       * @return void
       */
      public function register()
      {
          /*
           * Custom providers
           */
          if ($this->app->environment() == 'local') {
              $this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
          }
      }

使用方法

包/ artisan命令

Laravel Debugbar

    php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

StydeNet Html https://github.com/StydeNet/html

    php artisan vendor:publish --provider='Styde\Html\HtmlServiceProvider'

Laravel Packages https://github.com/Jeroen-G/laravel-packager

Laravel 5 IDE Helper Generator https://github.com/barryvdh/laravel-ide-helper

    php artisan vendor:publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config

Laravel Analytics https://github.com/spatie/laravel-analytics

    php artisan vendor:publish --provider="Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider"

Laravel Media Library https://github.com/spatie/laravel-medialibrary

    php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"

Laravel Authorize https://github.com/spatie/laravel-authorize

    php artisan vendor:publish --provider="Spatie\Authorize\AuthorizeServiceProvider"

Laravel Geocoder https://github.com/spatie/geocoder

    php artisan vendor:publish --provider="Spatie\Authorize\AuthorizeServiceProvider"

Laravel Test Factory Generator https://github.com/mpociot/laravel-test-factory-helper

Laravel Google Search https://github.com/spatie/googlesearch

     php artisan vendor:publish --provider="Spatie\GoogleSearch\GoogleSearchServiceProvider"

Laravel Flash https://github.com/laracasts/flash

Eloquent-Sluggable https://github.com/cviebrock/eloquent-sluggable

Laravel log viewer https://github.com/rap2hpoutre/laravel-log-viewer

Laravel Hashids https://github.com/vinkla/hashids

Laravel Activity Log https://github.com/spatie/activitylog

Laravel Localization https://github.com/spatie/activitylog

Laravel Localization https://github.com/spatie/activitylog

Laravel elFinder https://github.com/barryvdh/laravel-elfinder

Google ReCaptcha https://github.com/greggilbert/recaptcha

Laravel Mail CSS-Inliner https://github.com/fedeisas/laravel-mail-css-inliner

Laravel 面包屑导航 https://github.com/davejamesmiller/laravel-breadcrumbs

Sofa/Revionable https://github.com/jarektkaczyk/revisionable

Laravel 异常处理 https://github.com/GrahamCampbell/Laravel-Exceptions

Laravel 分析工具 https://github.com/ipunkt/laravel-analytics

Laravel EnvProviders https://github.com/svenluijten/env-providers

Former https://github.com/formers/former

Laravel JsValidation https://github.com/proengsoft/laravel-jsvalidation

View Maker https://github.com/evercode1/view-maker

ViewMaker 是用于 Laravel PHP 框架(5.2 及以上版本)Artisan 命令行工具的。

ViewMaker 添加了 10 个新的 artisan 命令,提供了用于 CRUD 生成、视图和数据网格的现成模板,具有带ajax搜索、列排序和分页的功能。您可以在不到一分钟的时间内创建和测试包含 CRUD 和视图的代码基础。

Laravel Widgets https://github.com/arrilot/laravel-widgets

推荐包

Laravel Generators http://labs.infyom.com/laravelgenerator/docs/getting-started/installation

Laravel Modules https://github.com/nWidart/laravel-modules

变更日志

请参阅 CHANGELOG 了解最近更改的详细信息。

测试

    $ composer test

贡献

请参阅 CONTRIBUTINGCONDUCT 了解详细信息。

安全

如果您发现任何与安全相关的问题,请通过电子邮件 shawnsandy04@gmail.com 联系,而不是使用问题跟踪器。

鸣谢

许可

MIT 许可证(MIT)。有关更多信息,请参阅 许可文件