PHP code example of thirdriver / packagetest
1. Go to this page and download the library: Download thirdriver/packagetest library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thirdriver / packagetest example snippets
$package = app('packagetest');
$package->info();
/*
[
'version' => '3.0',
'method' => ['config', 'migration', 'views'],
'uses' => [
'composer � 可在配置文件 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
#composer download package
composer ��组中添加服务提供者
ThirdRiver\PackageTest\PackageTestProvider::class
#运行发布文件命令 生成模板文件、配置文件
php artisan vendor:publish
#运行migrate
php artisan migrate