Download the PHP package ebalo/easycrud without Composer

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

Laravel easy-crud

Latest Version on Packagist Total Downloads

This package was created to avoid the repetitive task of creating standard crud endpoints in Laravel applications, the ultimate goal is to let you create your standard crud endpoint in less than a minute without having to worry about all the repeating tasks.

Installation

You can install the package via composer:

Then proceed with the package initialization with:

In case you want to manually install the trait for all your controller or only install it for some of them you should:

Usage

The package provide two method to access all the function:

Usage through trait

The trait exposes four main functions, these are:

The store and update procedure relay on the rules array to retrieve the parameter from the request. The rules array is a standard laravel validation array as the ones used in the Validator::create method or in the standard validate method of the controller class.

Example usage

You may have noted that the rules has a unique check on the name parameter, this check is automatically dropped in the update phase in order to let you easily update the model without any warning.
All the previous methods can also be written with the usage of the standard and more flexible easyCrud function, see the following example.

You see that the easyCrud is not that different from the previous examples.

Usage through helpers

There are four helper functions, these are:

The store and update procedure relay on the rules array to retrieve the parameter from the request. The rules array is a standard laravel validation array as the ones used in the Validator::create method or in the standard validate method of the controller class.
As you can see the name are exactly the name of the functions available with the trait, this is done in order to let you remember only one function name.

Example usage

The example usage is a bit more difficult and tedious than the previous one, check the following examples of the same methods implemented previously.

All the previous methods can also be written with the usage of the standard and more flexible easyCrud function, see the following example.

Additional functionality

As creating CRUD routes is almost always a copy-paste of previously created code, the package is shipped with a CRUD helper that can be easily called from inside your routes. See the following examples.

The above code works exactly like the following one.

If you don't want to generate all the predefined crud routes you can pass also an additional associative array like the following example.

The above code is the same as the following.

There is also a last additional way to call the CRUD function, it gives you the possibility to change the function to call once the route is executed, see this last example.

The above code is the same as the following.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please use the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of easycrud with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ^8.0
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 ebalo/easycrud contains the following files

Loading the files please wait ....