Download the PHP package citizen63000/easy-api-core without Composer
On this page you can find all versions of the php package citizen63000/easy-api-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download citizen63000/easy-api-core
More information about citizen63000/easy-api-core
Files in citizen63000/easy-api-core
Package easy-api-core
Short Description Symfony bundle providing core utilities for REST API development
License MIT
Informations about the package easy-api-core
Easy API Core
A Symfony bundle providing core utilities for REST API development. This bundle offers tools for entity configuration, form serialization, command abstractions, and various utilities to accelerate API development.
Installation in a third-party project
1. Installation via Composer
2. Bundle Configuration
Add the bundle to config/bundles.php:
3. Configuration
Create the file config/packages/easy_api_core.yaml:
Features
Entity Configuration
Load and introspect entity metadata from Doctrine annotations/attributes or database schema:
Form Serialization
Serialize Symfony forms for frontend consumption (useful for dynamic form generation):
Abstract Command
Base class for console commands with Doctrine and container access:
Core Utilities Trait
Provides shortcuts for common operations in controllers or services:
String Utilities
Case conversion and pluralization helpers:
API Problem Responses
Standardized error responses following RFC 7807:
Available Components
| Component | Description |
|---|---|
AbstractCommand |
Base console command with Doctrine access |
CoreUtilsTrait |
Common utilities for services/controllers |
EntityConfigLoader |
Entity metadata introspection |
DatabaseConfigurationLoader |
Database schema introspection |
FormSerializer |
Symfony form serialization |
CaseConverter |
String case conversion utilities |
Inflector |
Word pluralization/singularization |
ApiProblem |
Standardized API error responses |
MimeUtil |
MIME type utilities |
DirectoryManipulator |
Directory operations |
Local Development with Docker
Prerequisites
- Docker and Docker Compose installed
Installation for Development
-
Clone the repository:
-
Start the Docker environment:
- Install dependencies:
Development Commands
Check code style
Check code style
Access the container for debugging
Development Project Structure
Contribution workflow
- Create a feature branch
- Develop your feature
- Check code style with
php-cs-fixer - Commit changes
- Create a Pull Request
Compatibility
- PHP >= 8.3
- Symfony 6.4, 7.x, 8.0
- Doctrine ORM 2.7+ / 3.x
Support
- Issues: GitHub Issues
- Documentation: This README and docblocks in the code
License
MIT License - see LICENSE file for details.
All versions of easy-api-core with dependencies
doctrine/doctrine-bundle Version ^2.7
doctrine/orm Version ^2.7|^3.0
fakerphp/faker Version ^1.23
nelmio/api-doc-bundle Version ^4.10
psr/cache Version ^3.0
ramsey/uuid-doctrine Version ^2.0
symfony/console Version ^6.4|^7.0|^8.0
symfony/form Version ^6.4|^7.0|^8.0
symfony/serializer Version ^6.4|^7.0|^8.0
symfony/validator Version ^6.4|^7.0|^8.0