Download the PHP package yasiekz/router-bundle without Composer

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

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Bundle that provides aviability of generating URL address to objects instead of giving route name and route parameters

Instalation

Add bundle in your AppKernel.php

Bundle automatically overrides default symfony2 routing service.

Additional Configuration

There is no additional configuration required.

What interface should I use?

We have two interfaces avaiable. The RoutableCmsInterface is useful when you want to have more than one routing per object for example in CMS systems, where you might want to have diffrent routing for edit, delete object. The RoutableFrontInterface is useful for websites when there is only only one routing per object, but one object might have many routes depends on for example category that object belongs. TheRoutableMultiFrontStrategy is combo of both interfaces.

Usage:

RoutableCmsInterface

The URL is generated as same as default in Symfony2.

From controller:

The example above generates indirect address to object $object for destination 'edit'

From twig:

RoutableFrontInterface

Usage

The URL is generated as same as default in symfony2.

From controller:

The example above generates indirect address to object $object without transmission any additional params. Will be taken only params from getRouterParameters() method from class YourClass.

From Twig:

RoutableMultiFrontInterface

Usage

The URL is generated as same as default in symfony2.

From controller:

The example above generates indirect address to object $object with transmission destination param, and merge this param with getRouterParameters() method from class YourClass

From Twig:

Important

There is no possibility that the one class implements all interfaces at the same time.

Contrubution

You are highly encouraged to participate in the development. The terms are the same as the symfony2 http://symfony.com/doc/current/contributing/code/patches.html


All versions of router-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version >=2.4
symfony/finder Version >=2.4
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 yasiekz/router-bundle contains the following files

Loading the files please wait ....