Download the PHP package mero/base-bundle without Composer

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

MeroBaseBundle

SensioLabsInsight Build Status Latest Stable Version Total Downloads License

Symfony Bundle with additional features.

Requeriments

Instalation with composer

  1. Open your project directory;
  2. Run composer require mero/base-bundle to add MeroBaseBundle in your project vendor;
  3. Open my/project/dir/app/AppKernel.php;
  4. Add Mero\Bundle\BaseBundle\MeroBaseBundle().

Symfony validators

Applies to Options Class Validator Description
property or method message DateRange DateRangeValidator Validates date range

Basic usage

Brazilian validators in the new version

The brazilian validators feature has been migrated to the package mero/br-validator-bundle.

AbstractController to Symfony Controllers

Abstract controller with basic methods for easy identification framework resources.

Name Atributes Return type Description
getCurrentRequest - Request Gets the cuurrent request
getActionName - string Gets the action name
getBundleName Request $request string Gets the bundle name
getRouteName Request $request string Gets the route name
wsResponse $data, int $status, array $headers, string $format Response Return a new JSON or XML response

Usage example:

Doctrine ORM entities

Name Type Description Address
IdTrait Trait Create the primary key integer field Mero\Bundle\BaseBundle\Entity\Field\IdTrait
UuidTrait Trait Create the primary key UUID field Mero\Bundle\BaseBundle\Entity\Field\UuidTrait
CreatedTrait Trait Create field to store the creation date Mero\Bundle\BaseBundle\Entity\Field\CreatedTrait
ModifiedTrait Trait Create field to store the date of last change Mero\Bundle\BaseBundle\Entity\Field\ModifiedTrait
AbstractEntity Abstract Class Classic entity superclass using integer identifier Mero\Bundle\BaseBundle\Entity\AbstractEntity
AbstractEntityWithUuid Abstract Class Entity superclass using UUID identifier Mero\Bundle\BaseBundle\Entity\AbstractEntityWithUuid

Usage example with AbstractEntity:

Usage example with AbstractEntityWithUuid:

Usage example with Traits:

Twig extensions

Country

Gets name of the country based on the ISO 3166-1 alpha 2. Example: entity.getCountry() is a value generated by the type of form country.

Language

Gets name of the language based on the unicode language identifier. Example: entity.getLanguage() is a value generated by the type of form language.

Helpers

className

Gets name of the class. This helper was added to facilitate applications using PHP 5.4. Use of this feature is discouraged if you are using PHP 5.5 or above due to the native implementation added in the language.


All versions of base-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.9
ext-intl Version *
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 mero/base-bundle contains the following files

Loading the files please wait ....