derafu / api
Derafu: API - API with Autodiscovery
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Twig
Requires
- php: ^8.3
Requires (Dev)
- ext-xdebug: *
- derafu/foundation: dev-main
- friendsofphp/php-cs-fixer: ^3.63
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.4
This package is auto-updated.
Last update: 2025-04-11 13:02:40 UTC
README
WIP: Work In Progress.
Ideas
- Automatic Endpoint Discovery: Detect and register API endpoints automatically based on registered services, controllers, routes, or annotations.
- OpenAPI/Swagger Documentation: Generate API documentation dynamically using annotations or conventions.
- Framework-Agnostic Support: Ensure compatibility with different PHP frameworks (Symfony, Laravel, etc.) or provide middleware-based integration.
- Authentication and Security: Support for JWT, OAuth, and API key-based authentication.
- API Versioning: Automatic detection and handling of API versions via URL, headers, or query parameters.
- Interactive API Explorer: Built-in web interface for testing API endpoints.
- Middleware & Hooks: Allow customization via middleware or event-driven hooks for request processing.
- Service Discovery Integration: Optional registration with service discovery tools like Consul or Eureka.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
This package is open-sourced software licensed under the MIT license.