FOSRestBundle
This Bundle provides various tools to rapidly develop RESTful API's with Symfony (by FriendsOfSymfony)
NelmioCorsBundle
Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application (by nelmio)
FOSRestBundle | NelmioCorsBundle | |
---|---|---|
2 | 2 | |
2,786 | 1,850 | |
0.2% | 0.3% | |
5.9 | 5.0 | |
10 days ago | 5 months ago | |
PHP | PHP | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
FOSRestBundle
Posts with mentions or reviews of FOSRestBundle.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-17.
-
CORS with Symfony, jQuery, FOSRestBundle and NelmioCorsBundle
nelmio\_cors: paths: "^/": allow\_credentials: true origin\_regex: true allow\_origin: - "^(https?://)?(back|api)\.mydomain.dev/?" allow\_headers: ['Origin','Accept','Content-Type'] allow\_methods: ['POST','GET','DELETE','PUT','OPTIONS'] max\_age: 3600 hosts: - "^(https?://)?(back|api)\.mydomain.dev/?" The controller used is extending FOSRestBundle's one, has some security (for example, cannot POST/PUT/DELETE when you don't have the correct role), can update objects and returns only JSON data (there is a listener for that).
-
Controller ConstraintViolationListInterface
Searching the internet for FOSRestBundle ConstraintViolationListInterface yields useful documentation such as https://github.com/FriendsOfSymfony/FOSRestBundle/blob/3.x/Resources/doc/request_body_converter_listener.rst.
NelmioCorsBundle
Posts with mentions or reviews of NelmioCorsBundle.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-17.
-
CORS with Symfony, jQuery, FOSRestBundle and NelmioCorsBundle
For CORS configuration, I am using NelmioCorsBundle with this configuration:
-
PHP isn't that like really bad?
Just for a basic example let's compare how you add CORS in Spring in comparison to in Symfony and then in .NET. But being able to add CORS in one command, then just editing one config file? I think that's a better developer experience than the alternatives.
What are some alternatives?
When comparing FOSRestBundle and NelmioCorsBundle you can also consider the following projects:
API Platform - Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
Home Assistant - :house_with_garden: Open source home automation that puts local control and privacy first.
Symfony - The Symfony PHP framework
SwarrotBundle - A symfony bundle for swarrot integration
Sylius - Open Source eCommerce Framework on Symfony
core - The server component of API Platform: hypermedia and GraphQL APIs in minutes
DoctrineMigrationsBundle - Symfony integration for the doctrine/migrations library
dd-trace-php - Datadog PHP Clients
gotenberg-pdf-bundle - [READ-ONLY] Symfony Bundle for generating PDF using Gotenberg API
acl-bundle - Integrates the ACL Security component into Symfony applications.
FOSRestBundle vs API Platform
NelmioCorsBundle vs Home Assistant
FOSRestBundle vs Symfony
NelmioCorsBundle vs SwarrotBundle
FOSRestBundle vs Sylius
NelmioCorsBundle vs Symfony
FOSRestBundle vs core
NelmioCorsBundle vs DoctrineMigrationsBundle
FOSRestBundle vs DoctrineMigrationsBundle
NelmioCorsBundle vs dd-trace-php
NelmioCorsBundle vs gotenberg-pdf-bundle
NelmioCorsBundle vs acl-bundle