Create a custom class at any path with an optinal test.
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.
Publish the stub using:
php artisan vendor:publish --tag=stub
And edit the stubs/class.stub
file to your liking =)
You can install the package via composer:
composer require iak/make-class --dev
composer test
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.