Download the PHP package spiechu/symfony-commons-bundle without Composer

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

Symfony Commons Bundle

TravisCI StyleCI Scrutinizer Code Coverage
Build Status StyleCI Scrutinizer Code Quality Code Coverage

Intro

Main purpose of this bundle is to introduce some "missing" functionalities to Symfony Framework.

Consider this bundle as part of my preparations for Symfony Certification. I can only learn by doing instead of passive DOC reading.

Bundle characteristics:

Bundle rules

  1. Every feature is disabled by default. You only enable what you need.
  2. No event listeners hanging around when unneeded.
  3. Provide sane defaults and extensive customisation possibilities.

Features

GET method override

Enabling this feature will allow you to use URLs like http://myapp.com/mypath?_method=DELETE or PUT to override HTTP GET request method.

Sometimes you might need such functionality for example in admin area to ban / delete users. You can expose simple links and still have clean PUT / DELETE controller actions.

Full documentation here.

Response schema validation

Response schema validation allows you to validate endpoint responses on-the-fly. You just need to annotate controller action with @ResponseSchemaValidator annotation.

Typical use case is:

Full documentation here.

API versioning

When you have multiple API versions it's usually done by extending Controllers. This bundle introduces handy @ApiVersion annotation. You need to annotate your controller classes with this custom annotation and set version like:

Then in extending class:

From now on you can inject Spiechu\SymfonyCommonsBundle\Service\ApiVersionProvider service to your services and check what is the current request API version.

Full documentation here.

Installation

I'm assuming you have Composer installed globally.

Flex based installation (Symfony 3.4 and 4)

Download & enable the Bundle

Run console command in Symfony project directory:

Enable some/all Bundle features

Composer based installation (Symfony 3.4)

Download the Bundle

Run console command in Symfony project directory:

Enable the Bundle

Enable the bundle by adding the following line in the app/AppKernel.php file of your project:

Enable some/all Bundle features

Preferred way of configuring Bundle is via YAML config:

Configuration

Configuration reference can be found here.


All versions of symfony-commons-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-xml Version *
symfony/framework-bundle Version ~3.3|~4.0
sensio/framework-extra-bundle Version ~3.0|~4.0|~5.0
justinrainbow/json-schema Version ~5.0,<5.2.2|>=5.2.5,~5.2
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 spiechu/symfony-commons-bundle contains the following files

Loading the files please wait ....