Download the PHP package victoryoalli/laravel-code-generator without Composer

On this page you can find all versions of the php package victoryoalli/laravel-code-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-code-generator

GitHub release (latest by date) Packagist PHP Version Support GitHub forks GitHub stars Packagist Downloads

Laravel Code Generator is a PHP Laravel Package that uses Blade template engine to generate code for you.

The difference between other code generators is that this one will generate the code exactly as you want it to be, same design, same lines of code.

Demo

Installation

Use composer to install Laravel Code Generator.

Usage

Single file generation

Example Output

Multiple file generator

First create a custom command like this example

Create a Custom Command

Custom Command

Execute custom command

Templates & Customization

Templates are located at resources/vendor/laravel-code-generator. For example once you publish the views the file schema.blade.json will be located at the relative path is resources/vendor/laravel-code-generator\schema.blade.json .

The path resources/views/vendor/laravel-code-generator is where you can create your own new templates, or customize the existing ones.

Publish template views & Config

You can publish :

or the config file

This is the contents of the published config file config/laravel-code-generator.php:

By default you can use as templates files with following extensions, if you need to generate or use different files as templates you can add to the config file.

Structure

Example

Output Sample

Helpers

PHPSOL(): PHP Start Of Line

Will print

doubleCurlyOpen(): Opening Double Curly Braces

Will print:

doubleCurlyClose(): Closing Double Curly Braces

Will print:

tag('x-component-name'): Closing Double Curly Braces

Will print:

CodeGenerator::generate Facade

This is how you can use the Facade when you want to create your own Code Generator.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT


All versions of laravel-code-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/console Version ^8.0|^9.0|^10.0
illuminate/filesystem Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.0|^9.0|^10.0
doctrine/dbal Version ^2.9|^3.0
spatie/laravel-ray Version ^1.18
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 victoryoalli/laravel-code-generator contains the following files

Loading the files please wait ....