Download the PHP package ewll/crud-bundle without Composer

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

Ewll/CrudBundle

Installation

Add to packages configuration:
config/bundles.php

config/routes.yaml

Units

Ewll\CrudBundle\Unit\UnitInterface

public function setUserProvider(UserProviderInterface $userProvider): void

This function allows to inject mechanism of getting user inside unit.

public function getUnitName(): string

The main name for URL. Must be unique of all other utits.

public function getEntityClass(): string

The main entity class.

public function getSourceClassName(): string

Class name of class implemented Ewll\CrudBundle\Source\SourceInterface allows access to entity storage.

public function getAccessRuleClassName(): ?string

Class name of ewll/user-bundle AccessRule class implemented Ewll\UserBundle\AccessRule\AccessRuleInterface.

public function getAccessConditions(string $action): array

Must returns array of Access Conditions.

public function getCustomActions(): array

Must returns array of Custom Actions class names.

Ewll\CrudBundle\Unit\CreateMethodInterface

Allows to create entities by request: POST /crud/{unitName}

public function getCreateFormConfig(): FormConfig

Set Form Config for entity creation.

public function getMutationsOnCreate(object $entity): array

Returns array of fields with new values. This method calls before storing.

public function onCreate(object $entity, array $formData): void

Some actions inside transaction within INSERT.

public function getCreateExtraData(object $entity): array

Some data you need to see in Response after success creation.

Ewll\CrudBundle\Unit\UpdateeMethodInterface

Ewll\CrudBundle\Unit\ReadMethodInterface

Ewll\CrudBundle\Unit\DeleteMethodInterface

Access Conditions

@TODO

Custom Actions

@TODO

Form Config

Ewll\CrudBundle\Form\FormConfig
This is some wrapper for Symfony Form Building

Read Transformers

Use read transformers to transform data into views.

  1. Implement Ewll\CrudBundle\ReadViewCompiler\Transformer\ViewTransformerInitializerInterface. Use abstract class Ewll\CrudBundle\ReadViewCompiler\Transformer\ViewTransformerInitializerInterface. This class is needed to define transformer parameters. You will put it into Unit methods getReadListFields() and getReadOneFields().
  2. Implement Ewll\CrudBundle\ReadViewCompiler\Transformer\ViewTransformerInterface. Make it as service with tag crud_view_transformer.

All versions of crud-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3
ext-json Version *
symfony/form Version ^5
symfony/validator Version ^5
symfony/framework-bundle Version ^5
symfony/translation Version ^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 ewll/crud-bundle contains the following files

Loading the files please wait ...