Skip to content

Package to create custom classes with tests in your Laravel app

License

Notifications You must be signed in to change notification settings

iaK/make-class

Repository files navigation

A package to create custom classes with tests in your Laravel app

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.

About

Package to create custom classes with tests in your Laravel app

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages