Download the PHP package davidngugi/laravel-php-generator without Composer

On this page you can find all versions of the php package davidngugi/laravel-php-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-php-generator

Laravel PHP Generator

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

Installation

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

Example

this generates the following

Including the path. E.g Logic/Core

You can generate multiple classes at a go

Create and Extend a class

We use the -e or --extend option. Specify the name of the class to extend. The class to extend will also be generated if it doesn't exist. You can only extend one class

Example

this generates the following 2 files:

Generate a class and Implement an Interface

We use the -i or --interface option. Specify the name of the interface to implement.

NOTE: The interface name should be without the word 'Interface' at the end, this will be auto-generated . You can only implement one interface

Example:

this will generate the following 2 files:

An interface

and a class

Create and Extend a class and Implement an Interface

We use the above options (-e and -i).

Example

this generates

NOTE: No existing files or folders will be overwritten by these commands

Create an Interface

We use the generate:interface artisan command. This also supports the -p or --path option to specify the directory path.

App\Logic\Interfaces is the default path

Example

this generates the following

Create a Trait

We use the generate:trait artisan command. This also supports the -p or --path option to specify the directory path.

App\Logic\Traits is the default path

Example

this generates the following

Contribution

All contributions (big or small) are highly welcomed. Send a PR

Authors

Support

If you would love to support the continuous development and maintenance of this package, please consider buying me a coffee.

License

This package is open-sourced software licensed under the MIT Licence


All versions of laravel-php-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
illuminate/support Version 5.5.*
illuminate/console Version 5.5.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package davidngugi/laravel-php-generator contains the following files

Loading the files please wait ....