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 17, 2024 via composer

friendsofsymfony/rest-bundle 2.7.4

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
Package summary
Share
1
issue
1
high severity
meta
1
1
license
37
MIT
Package created
12 Nov 2011
Version published
23 Apr 2020
Maintainers
2
Total deps
37
Direct deps
14
License
MIT

Issues

1

1 high severity issue

high
via: symfony/debug@v4.4.44 & others
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
37 Packages, Including:
doctrine/inflector@1.4.4
friendsofsymfony/rest-bundle@2.7.4
psr/cache@2.0.0
psr/container@1.1.2
psr/log@1.1.4
symfony/cache@v5.4.39
symfony/cache-contracts@v2.5.3
symfony/config@v4.4.44
symfony/debug@v4.4.44
symfony/dependency-injection@v4.4.49
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@v4.4.44
symfony/framework-bundle@v4.4.51
symfony/http-client-contracts@v2.5.3
symfony/http-foundation@v4.4.49
symfony/http-kernel@v4.4.51
symfony/mime@v5.4.39
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@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@v4.4.44
symfony/security-core@v4.4.48
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
willdurand/negotiation@v2.3.1
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

14
All Dependencies CSV
β“˜ This is a list of friendsofsymfony/rest-bundle 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
doctrine/inflector1.4.4-MIT
prod
psr/log1.1.410.7 kBMIT
prod dev
symfony/configv4.4.44-MIT
prod dev
symfony/debugv4.4.4439.55 kBMIT
prod dev
1
symfony/dependency-injectionv4.4.49-MIT
prod dev
symfony/event-dispatcherv4.4.44-MIT
prod dev
symfony/finderv4.4.44-MIT
prod dev
symfony/framework-bundlev4.4.51272.98 kBMIT
prod
1
symfony/http-foundationv4.4.49-MIT
prod dev
symfony/http-kernelv4.4.51191.8 kBMIT
prod dev
1
symfony/routingv4.4.44-MIT
prod dev
symfony/security-corev4.4.48-MIT
prod dev
willdurand/jsonp-callback-validatorv1.1.0-MIT
prod
willdurand/negotiationv2.3.1-MIT
prod

Visualizations

Frequently Asked Questions

What does friendsofsymfony/rest-bundle do?

The FriendsOfSymfony REST Bundle (FOSRestBundle) is a powerful toolset designed to facilitate the rapid development of RESTful APIs and applications using Symfony. It provides a number of features beneficial to developers: a view layer for output and format-agnostic controllers, handling custom mime types through Accept header format negotiation, RESTful decoding of HTTP request bodies and Accept headers, mapping of exception codes to HTTP response status codes, and serializer error rendering compatible with the RFC 7807 through use of the Symfony Serializer component or the JMS Serializer.

How do you use friendsofsymfony/rest-bundle?

Utilization of the FOSRestBundle begins with installation, for which all necessary instructions are provided in the package's official documentation. Its usage revolves around its primary features. For instance, to create format-agnostic controllers, developers will use the View layer, which can be customized further based on the requirements of your API. Additionally, thanks to intelligent decoder mechanisms, developers can easily interpret HTTP request bodies and Accept headers in RESTful fashion. Exception handling with FOSRestBundle is also simplified, as it performs automatic mapping of exception codes to HTTP response status codes.

This is a simple example in which the FOSRestBundle's View layer is being used:

use FOS\RestBundle\View\View;
use Symfony\Component\HttpFoundation\Response;

public function getFooAction()
{
    $data = ... // get data, it can be an array or an object
    $view = View::create($data, Response::HTTP_OK);
    return $view;
}

Where are the friendsofsymfony/rest-bundle docs?

For more comprehensive information, including all specifics of the FOSRestBundle's usage, refer to the official documentation. Thorough guidance on everything from simple setup to advanced features is available in the package's dedicated Documentation on the Read the Docs platform.