Download the PHP package knplabs/rad-auto-registration without Composer

On this page you can find all versions of the php package knplabs/rad-auto-registration. 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 rad-auto-registration

DEPRECATED

Unfortunately we decided to not maintain this project anymore (see why). If you want to mark another package as a replacement for this one please send an email to [email protected].

Rapid Application Development : Auto-Registration

Auto register some common services

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License

Official maintainers:

Installation

Use

Doctrine repositories auto-registration

Just activate doctrine (or doctrine_mongodb ou doctrine_couchdb depending on your needs) into your configuration.

Now all repositories are auto-registred.

Entity Repository
MyProjectBundle\Entity\User my_project_bundle.entity.user_repository
TheOtherBundle\Entity\Model\Address the_other_bundle.model.user.address_repository
MyProjectBunde\Document\User my_project_bundle.document.user_repository

Requirements

Your doctrine entity (or documents) should be stored under Entity, Document or Model sub-namespace.

Constraint validators

Just activate constraint_validator into your configuration.

Now all custom constaint validators are auto-registered.

Requirements

Your constraint validators should be stored under Validation or Validator sub-namespace.

Form extensions

Just activate form_type_extension into your configuration.

Now all form type extensions are auto-registred.

Requirements

Your form type extensions should be stored under Form sub-namespace.

Security voters

Just activate security_voter into your configuration.

Now all the voters are auto-registered.

Requirements

Your security voters should be stored under Security sub-namespace.

Twig extensions

Just activate twig_extension into your configuration.

Now all Twig extensions are auto-registered.

Requirements

Your Twig extensions should be stored under Twig or Templating sub-namespace.

Public/Private services

By default, all autoregistered services are marked as private (public: false). You can overide this behavior by setting the public parameter to true.

Example:

Restrictions

Autoloading

Bundle

You can apply auto-registration on only certains bundle. You just have to add a bundles configuration:

WARNING

All auto-registered services are set as private, so it's impossible to get them by using $container->get('service_name'). If needed, create the service definition by yourself.


All versions of rad-auto-registration with dependencies

PHP Build Version
Package Version
Requires php Version ~7.0
doctrine/dbal Version ~2.2
doctrine/inflector Version ~1.0
psr/log Version ~1.0
symfony/config Version ~2.8||~3.0
symfony/dependency-injection Version ~2.8||~3.0
symfony/framework-bundle Version ~2.8||~3.0
symfony/http-kernel Version ~2.8||~3.0
symfony/security-bundle Version ~2.8||~3.0
symfony/twig-bundle Version ~2.8||~3.0
twig/twig Version ~1
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 knplabs/rad-auto-registration contains the following files

Loading the files please wait ....