Skip to content

clarkeash/machine

Repository files navigation

Machine

Machine helps you create php classes, interfaces and more

Author Travis Scrutinizer Codecov Packagist Version License

Installation

composer global require clarkeash/machine

Usage

This package requires that you have psr-4 autoloading enabled in your composer.json file, as this is how it calculates the namespace for the classes you create.

The machine command should be ran from the root directory, where the composer.json lives.

Class

Create a basic class

machine make:class Example

Create an abstract class

machine make:class Example --abstract

Interface

Create an interface

machine make:interface ExampleInterface

Trait

Create a trait

machine make:trait ExampleTrait

Testing

./vendor/bin/phpunit

##License

This package is released under the MIT license. Please see the License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages