Download the PHP package sherlockode/crud-bundle without Composer

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

SherlockodeCrud Bundle



Overview


This bundle generate basic crud.


Installation


Install the bundle with composer:

Generate a basic grid view:


Customisation

You need custom action or custom field? You can easily define your own

You need the object instead of a property value in the grid?

You need to add filters on your grid?

You need to create a custom query for the grid?

You need filters?

The bundle has basic filters

Entity filter need more configuration:

To add some filters:

You need custom filter?

If you need a filter that does not exist, create it !

Create your own filter class and your own filter type class, in this example MyCustomFilter. MyCustomFilter need to implements FilterInterface

Now you need to set the template for your new filter:

You need to sort your grid?

You need to let the user choose the order?

You need to change the redirection a resource creation or edition?

By default, after a resource creation or edition, you will be redirected to the update action

You need a custom template for a route?

You only want to create the index route, not all of them?

You want to create all routes excepted delete?

You need to check permission before action?

Now make your own voter for each action

The attribute is prefixed by the resource_name. In this example, it's user_index

You want to send some variable?

In this example, we send an icon to all paths.

If you want to do this only for a specific path:

You need to remove the delete confirmation page?

You need to add some information in the show view?

You need to change the translation domain?

You need to disable the translation domain?

If you need to be more specific, you can disable translation or set a custom for some grids

If you set a translation_domain for a grid, the value will replace the global one

You need to send data to the views?

In ResourceControllerDataEvent, you have several actions :

In ResourceController, in show, create, update and delete confirmation actions, an even is dispatched before the page is rendered.

If you need to send data to the view, you can create a listener.

In the view, the data variable will contain your data sent in the example above.

You need to prevent flush?

In ResourceControllerEvent, you have several actions :

In ResourceController, in create, update and delete actions, an even is dispatched before flush is performed.

If you need to cancel the flush, you can create a listener


All versions of crud-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
knplabs/knp-paginator-bundle Version ^5.0 || ^6.0
symfony/form Version ^5.0 || ^6.0
symfony/framework-bundle Version ^5.0 || ^6.0
symfony/twig-bundle Version ^5.0 || ^6.0
twig/twig Version ^2.0 || ^3.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 sherlockode/crud-bundle contains the following files

Loading the files please wait ....