FOSRestBundle
DoctrineMigrationsBundle
FOSRestBundle | DoctrineMigrationsBundle | |
---|---|---|
2 | 1 | |
2,786 | 4,157 | |
0.2% | 0.2% | |
5.9 | 6.7 | |
10 days ago | 25 days ago | |
PHP | PHP | |
MIT License | MIT License |
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
-
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.
DoctrineMigrationsBundle
-
Database migrations: the beauty
With Symfony, after installing the Doctrine Migrations Bundle, you can run something like:
What are some alternatives?
API Platform - Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
doctrine-multi-tenancy - Extension for Doctrine 2 providing advanced multi-tenancy support
NelmioCorsBundle - Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application
msgphp - Reusable domain layers. Shipped with industry standard infrastructure.
Symfony - The Symfony PHP framework
sentry-symfony - The official Symfony SDK for Sentry (sentry.io)
Sylius - Open Source eCommerce Framework on Symfony
DoctrineEnumBundle - 📦 Provides support of ENUM type for Doctrine in Symfony applications.
core - The server component of API Platform: hypermedia and GraphQL APIs in minutes
DoctrineEncryptBundle - :key: Encrypted symfony entities by verified and standardized libraries
doctrine-laminas-hydrator - Doctrine hydrators for Laminas applications
DoctrineBundle - Symfony Bundle for Doctrine ORM and DBAL