iak/make-class
Composer 安装命令:
composer require iak/make-class
包简介
A package to create basic classes with tests in your Laravel app
关键字:
README 文档
README
Create a custom class at any path with an optinal test.
Usage
Example:
$ php artisan make:class Custom/Folder/MyCoolClass
Will create a app/Custom/Folder/MyCoolClass.php file containing:
<?php namespace App\Custom\Folder; class MyCoolClass { // }
Use the --test option to create a corresponding test in test/Unit/Custom/Folder/MyCoolClassTest.php using the default laravel unit test stub.
Customize the stub
Publish the stub using:
php artisan vendor:publish --tag=stub
And edit the stubs/class.stub file to your liking =)
Installation
You can install the package via composer:
composer require iak/make-class --dev
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-28