Developed with love by KnpLabs Hire us for your project!
1310

FOSJsRoutingBundle

by FriendsOfSymfony

A pretty nice way to expose your Symfony2 routing to client applications.

FOSJsRoutingBundle

Build<br>
Status

Join the chat at https://gitter.im/FOSJsRoutingBundle/Lobby

This bundle allows you to expose your routing in your JavaScript code.
That means you'll be able to generate URL with given parameters like you can do with the Router component provided in the Symfony2 core.

This is a port of the symfony 1.x plugin: chCmsExposeRoutingPlugin.

Documentation

For documentation, see:

https://symfony.com/doc/master/bundles/FOSJsRoutingBundle/index.html

Contributing

See
CONTRIBUTING
file.

Original Credits

  • William DURAND as main author.
  • Julien MUETTON (Carpe Hora) for the inspiration.

License

This bundle is released under the MIT license. See the complete license in the
bundle:

Resources/meta/LICENSE
Copyright (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
fos_js_routing:
serializer: ~
routes_to_expose: []
router: router
request_context_base_url: ~
cache_control:
public: false
expires: ~
maxage: ~
smaxage: ~
vary: []
  • Prepare 2.6.0 release
    By web-flow, 8 months ago
  • Fix typos (#388)
    By web-flow, 8 months ago
  • Fix URL encoding to mimic Symfony URL Generator (#387)
    By web-flow, 8 months ago
  • Fixed issue with creating absolute instead of relative path (#391)
    By web-flow, 8 months ago
  • Prepare 2.5.4 release
    By web-flow, 9 months ago
  • Fix duplicated port in absolute path (#381)
    By web-flow, 9 months ago
  • Prepare 2.5.3 release
    By web-flow, 1 year ago
  • Revert "Bugfix when baseurl is missing or empty in json (#371)" (#374)
    By web-flow, 1 year ago
  • Prepare 2.5.2 release
    By web-flow, 1 year ago
  • Bugfix when baseurl is missing or empty in json (#371)
    By tobias-93, 1 year ago
  • Merge pull request #372 from Ousret/upgrade-gulp
    By web-flow, 1 year ago
  • Upgrade gulp to version 4
    By , 1 year ago
  • Update CHANGELOG.md
    By web-flow, 1 year ago
  • Merge pull request #369 from FriendsOfSymfony/fix-root-dir-deprecation
    By web-flow, 1 year ago
  • Fix wrong implode argument order
    By tobias-93, 1 year ago
  • Add PHP 7.4 to Travis tests
    By tobias-93, 1 year ago
  • Fix root dir deprecation in Symfony 5
    By tobias-93, 1 year ago
  • Prepare 2.5.0 release
    By web-flow, 1 year ago
  • Merge pull request #362 from nesk/patch-1
    By web-flow, 1 year ago
  • Merge pull request #361 from rakelley/absolute-urls-should-include-port
    By web-flow, 1 year ago
  • Merge pull request #366 from rachel-fizz/symfony-5
    By web-flow, 1 year ago
  • Add support for Symfony 5, drop support for PHP5, drop support for Symfony 2
    By Rachel, 1 year ago
  • Bypass cache for exposed routes in debug mode
    By web-flow, 1 year ago
  • add port to absolute url generation
    By ryan.kelley, 1 year ago
  • Prepare 2.4.0 release
    By web-flow, 1 year ago
  • Merge pull request #352 from benjamintoussaint/patch-1
    By web-flow, 1 year ago
  • Merge pull request #334 from alexanza/symfony-4.1-i18n
    By web-flow, 1 year ago
  • adapt for symfony 4.1 i18n routes
    By , 1 year ago
  • Prepare 2.3.1 release
    By web-flow, 1 year ago
  • Merge pull request #350 from tugrul/expose_domains
    By web-flow, 1 year ago