Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via composer

friendsofsymfony/jsrouting-bundle 2.4.0

A pretty nice way to expose your Symfony2 routing to client applications.
Package summary
Share
1
issue
1
high severity
meta
1
1
license
32
MIT
Package created
1 Nov 2011
Version published
10 Aug 2019
Maintainers
2
Total deps
32
Direct deps
4
License
MIT

Issues

1

1 high severity issue

high
via: symfony/framework-bundle@v4.4.51
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
32 Packages, Including:
friendsofsymfony/jsrouting-bundle@2.4.0
psr/cache@2.0.0
psr/container@1.1.2
psr/log@2.0.0
symfony/cache@v5.4.39
symfony/cache-contracts@v2.5.3
symfony/config@v5.4.39
symfony/console@v4.4.49
symfony/debug@v4.4.44
symfony/dependency-injection@v5.4.39
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v4.4.44
symfony/event-dispatcher@v4.4.44
symfony/event-dispatcher-contracts@v1.10.0
symfony/filesystem@v5.4.39
symfony/finder@v5.4.39
symfony/framework-bundle@v4.4.51
symfony/http-client-contracts@v2.5.3
symfony/http-foundation@v5.4.39
symfony/http-kernel@v4.4.51
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php73@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php81@v1.29.0
symfony/process@v6.4.7
symfony/routing@v5.4.39
symfony/serializer@v4.4.47
symfony/service-contracts@v2.5.3
symfony/var-dumper@v5.4.39
symfony/var-exporter@v6.4.7
willdurand/jsonp-callback-validator@v1.1.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of friendsofsymfony/jsrouting-bundle 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/consolev4.4.49-MIT
prod dev
symfony/framework-bundlev4.4.51272.98 kBMIT
prod
1
symfony/serializerv4.4.47-MIT
prod dev
willdurand/jsonp-callback-validatorv1.1.0-MIT
prod

Visualizations

Frequently Asked Questions

What does friendsofsymfony/jsrouting-bundle do?

The FriendsofSymfony JS Routing Bundle - often abbreviated as FOSJsRoutingBundle - serves as a valuable resource for exposing your Symfony routing configuration to your JavaScript applications. It essentially enables your JavaScript code to generate URLs with specified parameters, similar to what you can do with the Router component available in the Symfony core. The FOSJsRoutingBundle can be considered as a progressive port of the Symfony 1.x plugin chCmsExposeRoutingPlugin.

How do you use friendsofsymfony/jsrouting-bundle?

To utilize the power of FOSJsRoutingBundle in exposing your Symfony routes, you must first install the bundle through Composer. Use the command composer require friendsofsymfony/jsrouting-bundle from your terminal to include this bundle within your project. Once it's installed, make sure to enable the bundle in your AppKernel.php file with new FOS\JsRoutingBundle\FOSJsRoutingBundle().

Afterward, in your routing configuration file - often routing.yml - make sure to import JS routing definitions:

fos_js_routing:
    resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"

You can then create routes in your Symfony application like usual. However, to expose certain routes to your JavaScript, you need to add the option _expose and set it to true in your routing config:

app_my_route:
    path: /my_route/{param}
    defaults: { _controller: AppBundle:Default:index }
    options:
        expose: true

With this setup, you can generate routes with parameters on the client-side using the Routing.generate method available in JavaScript:

var url = Routing.generate('app_my_route', {param: 'my_param'});

Note that this is a basic example. More complex applications might require different or additional configurations.

Where are the friendsofsymfony/jsrouting-bundle docs?

To delve into FOSJsRoutingBundle and fully understand its capabilities and utilization, it's recommended to refer to its detailed documentation available. It can be accessed online at https://symfony.com/doc/master/bundles/FOSJsRoutingBundle/index.html. This is the official documentation for FOSJsRoutingBundle and it provides comprehensive guidance on how to effectively implement its features into your Symfony applications.