Download the PHP package ronasit/larabuilder without Composer

On this page you can find all versions of the php package ronasit/larabuilder. 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 larabuilder

Coverage Status

Laravel Builder

For internal architecture and contributor guidance, see ARCHITECTURE.md.

Installation

Usage

The logic of the package usage consists of the three stages:

  1. Open a php file
  2. Call required class modifications methods
  3. Render modified class structure and overwrite existing file

Features

setProperty

Add new class property with the passed value and passed access level in case property does not exist in the class. Otherwise will change already existing class property's value AND access level

addArrayPropertyItem

Add new item to the array class property. Will add new property in case it does not exist yet.

removeArrayPropertyItem

Remove items from the array class property. If the property or item does not exist no action is taken.

insertCodeToMethod

Insert the provided code into the specified method body at the desired position - by default, to the end of the method.

addImports

Add new imports to the file. This method will add a new import only in case it does not exist yet, preventing duplicate use statements.

addTraits

Add new use TraitName; statements to a class, trait, or enum. This method automatically adds the corresponding use imports at the top of the file and prevents duplicate trait usages.

Note: Need to provide the full trait class name (FQCN); the method will import it automatically.

addMethod

Add a new method to a class, trait, or enum. Throws NodeAlreadyExistsException if a method with the given name already exists.

removeMethod

Remove a method by name from a class, trait, enum, or interface.

Special Laravel structure builders

Bootstrap app

To modify the Laravel bootstrap app file, use special AppBootstrapBuilder:

This builder has all the features described above and the special methods:

addExceptionsRender

Adds a new exception render to the withExceptions called method in case it does not exist yet. Does not modify already added render for the passed exception class.

Note Need to provide the full exception class name (FQCN) to the method, it automatically imports it.

Contributing

Thank you for considering contributing to Laravel Builder package! The contribution guide can be found in the Contributing guide.

License

Laravel Builder package is open-sourced software licensed under the MIT license.


All versions of larabuilder with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=12.28
php Version ^8.4
nikic/php-parser Version ^5.6
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 ronasit/larabuilder contains the following files

Loading the files please wait ...