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

dev-main 2025-03-11 12:50 UTC

This package is auto-updated.

Last update: 2025-04-11 13:02:40 UTC


README

GitHub last commit CI Workflow GitHub code size in bytes GitHub Issues Total Downloads Monthly Downloads

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.