PHP code example of codebider / service-generator-tool
1. Go to this page and download the library: Download codebider/service-generator-tool 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/ */
codebider / service-generator-tool example snippets
'providers' => [
CodeBider\ServiceGenerator\ServiceGeneratorServiceProvider::class,
];
return [
'namespace' => 'App\\Services',
'path' => app_path('Services'),
];
namespace {{ namespace }};
class {{ class }}
{
//
}
bash
php artisan vendor:publish --provider="CodeBider\ServiceGenerator\ServiceGeneratorServiceProvider"