PHPackages                             davidngugi/laravel-php-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. davidngugi/laravel-php-generator

ActivePackage

davidngugi/laravel-php-generator
================================

Command line tool to generate your classes, interfaces and traits. Aiming for your higher productivity

v1.0.3(8y ago)8301MITPHPPHP &gt;=7.1

Since Feb 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/DavidNgugi/laravel-php-generator)[ Packagist](https://packagist.org/packages/davidngugi/laravel-php-generator)[ RSS](/packages/davidngugi-laravel-php-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Laravel PHP Generator
=====================

[](#laravel-php-generator)

A simple command line tool to generate your Laravel classes, interfaces and traits. Aiming for your higher productivity

[![](https://camo.githubusercontent.com/aa38829962fc7e09d350102b919ccd1f92f68b66554bfd730a52631ed6dd97b8/68747470733a2f2f7472617669732d63692e6f72672f44617669644e677567692f6c61726176656c2d7068702d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/aa38829962fc7e09d350102b919ccd1f92f68b66554bfd730a52631ed6dd97b8/68747470733a2f2f7472617669732d63692e6f72672f44617669644e677567692f6c61726176656c2d7068702d67656e657261746f722e7376673f6272616e63683d6d6173746572)

Installation
============

[](#installation)

```
composer require davidngugi/laravel-php-generator
```

Documentation
=============

[](#documentation)

The package allows you to generate Classes, Interfaces and Traits. You can generate classes that extend another class and implements an interface. The package generates the necessary directories as specified by the -p or path option. Otherwise there is a default path used.

All paths lead to the App directory. So don't have App in you path.

The following subsections explain further how to use the various commands

*NOTE: Replace the string in curly braces with your own values*

Create a class
--------------

[](#create-a-class)

```
php artisan generate:class {class_name_here}
```

### Example

[](#example)

```
php artisan generate:class Account
```

this generates the following

```
