thirdriver / packagetest by thirdriver

laravel package test
11
2
2
Package Data
Maintainer Username: thirdriver
Maintainer Contact: a793544531@163.com (thirdriver)
Package Create Date: 2017-03-09
Package Last Update: 2017-03-09
Language: PHP
License: MIT
Last Refreshed: 2024-12-18 03:04:20
Package Statistics
Total Downloads: 11
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

packagetest

使用方法

#composer download package
composer require thirdriver/packagetest

#在配置文件app.php providers数组中添加服务提供者
ThirdRiver\PackageTest\PackageTestProvider::class

#运行发布文件命令 生成模板文件、配置文件
php artisan vendor:publish

#运行migrate
php artisan migrate

类中方法

$package = app('packagetest');

$package->info();

/*
    
    [
       'version'       => '3.0',
       'method'        => ['config', 'migration', 'views'],
       'uses'          => [
           'composer require thirdriver/packagetest',
           'app.php providers array add ThirdRiver\PackageTest\PackageTestProvider::class',
           'php artisan vendor:publish',
           'php artisan migrate'
       ]
    ]

*/

// 显示配置信息 可在配置文件 packagetest.php中修改
$package->config();
// or 访问路由 http://localhost/package_test/config


// 显示migration信息
$package->migration();
// or 访问路由 http://localhost/package_test/migration

// 显示模板信息
$package->views();
// or 访问路由 http://localhost/package_test/views