Download the PHP package paysera/fork-carpe-hora-ch-cms-expose-routing-plugin without Composer

On this page you can find all versions of the php package paysera/fork-carpe-hora-ch-cms-expose-routing-plugin. 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 fork-carpe-hora-ch-cms-expose-routing-plugin

chCmsExposeRoutingPlugin: expose your symfony routes to javascript

Goal

chCmsExposeRoutingPlugin is a symfony 1.(3|4) plugin used to expose routing definition to the client side.

if you use symfony2, have a look to FriendsOfSymfony/FOSJsRoutingBundle

Requirement

You need jquery to use this plugin. jQuery is not bundeled with this plugin, you have to include it yourself.

How does it work ?

Enable

First, enable the plugin in your project configuration:

Then enable chCmsExposeRouting in your application:

And finaly publish assets

you're done !

More conf

You can disable the script auto inclusion by adding the following in your routing.yml

You can disable the route auto declaration by adding the following in your routing.yml

and the register your route this way:

register your exposed routes

make a route exposable

the only thing you need to do is to add an _appexpose option:

force a route exposition

in your application config ( app.yml ), add the following:

expose all exposable routes

if you want to expose all routes with _appexpose option to true, just add the following to your application config ( app.yml ):

custom filter on exposed params

in your application config ( app.yml ), add the following:

access routes in browser

It's as simple as calling Routing.generate('route_id', /* your params */).

Documentation

Test suite

You can help us improving code quality by running the JS Test Suite. if you find something wrong, please Report Isssue

TODO


All versions of fork-carpe-hora-ch-cms-expose-routing-plugin with dependencies

PHP Build Version
Package Version
No informations.
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 paysera/fork-carpe-hora-ch-cms-expose-routing-plugin contains the following files

Loading the files please wait ....