Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

friendsofsymfony/rest-bundle 3.6.0

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
Package summary
Share
0
issues
1
license
31
MIT
Package created
12 Nov 2011
Version published
27 Sep 2023
Maintainers
2
Total deps
31
Direct deps
11
License
MIT

Issues

0
This package has no issues

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
31 Packages, Including:
friendsofsymfony/rest-bundle@3.6.0
psr/cache@3.0.0
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/cache@v7.0.7
symfony/cache-contracts@v3.5.0
symfony/config@v6.4.7
symfony/dependency-injection@v6.4.7
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v6.4.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/filesystem@v7.0.7
symfony/finder@v7.0.7
symfony/framework-bundle@v6.4.7
symfony/http-foundation@v6.4.7
symfony/http-kernel@v6.4.7
symfony/password-hasher@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/process@v7.0.7
symfony/routing@v6.4.7
symfony/security-core@v6.4.7
symfony/service-contracts@v3.5.0
symfony/var-dumper@v7.0.7
symfony/var-exporter@v7.0.7
willdurand/jsonp-callback-validator@v2.0.0
willdurand/negotiation@3.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

11
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
psr/log3.0.06.77 kBMIT
prod dev
symfony/configv6.4.7-MIT
prod dev
symfony/dependency-injectionv6.4.7-MIT
prod dev
symfony/event-dispatcherv6.4.7-MIT
prod dev
symfony/framework-bundlev6.4.7-MIT
prod
symfony/http-foundationv6.4.7-MIT
prod dev
symfony/http-kernelv6.4.7-MIT
prod dev
symfony/routingv6.4.7-MIT
prod dev
symfony/security-corev6.4.7-MIT
prod dev
willdurand/jsonp-callback-validatorv2.0.07.82 kBMIT
prod
willdurand/negotiation3.1.026.26 kBMIT
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.