swift-api / swift
Simple and fast API framework
v0.2.16
2023-04-24 17:56 UTC
Requires
- php: >=8.1.0
- alecrabbit/php-cli-snake: ^0.6.0
- caseyamcl/guzzle_retry_middleware: ^2.6
- cboden/ratchet: ^0.4.4
- cycle/annotated: ^3.2.0
- cycle/entity-behavior-uuid: ^1.0
- cycle/orm: ^v2.2.0
- cycle/schema-migrations-generator: ^2.0
- dibi/dibi: ^4.2
- doctrine/orm: ^2.13.x-dev
- guzzlehttp/guzzle: ^7.4.5
- laminas/laminas-code: ^4.6.0
- league/flysystem: ^2.4.5
- mashape/unirest-php: ^3.0
- monolog/monolog: ^2.8.0
- mouf/classname-mapper: ^1.0
- peppeocchi/php-cron-scheduler: ^4.0
- phpdocumentor/reflection-docblock: ^5.3.0
- psr/http-server-middleware: ^1.0
- psr/simple-cache: ^1.0
- ramsey/uuid: ^4.3.1
- react/async: ^4@dev
- runtime/react: ^0.1.0
- symfony/cache: ^6.0
- symfony/config: ^6.0
- symfony/console: ^6.0
- symfony/dependency-injection: ^6.0
- symfony/event-dispatcher: ^6.0
- symfony/event-dispatcher-contracts: ^2.2
- symfony/mime: ^6.0
- symfony/process: ^6.0
- symfony/rate-limiter: ^6.0
- symfony/yaml: ^6.0
- webonyx/graphql-php: ^v14.11.6
Requires (Dev)
- roave/security-advisories: dev-latest
- symfony/maker-bundle: ^1.45
README
This is a small and fast PHP framework meant to write APIs or microservices in a fast and easy manner. This is a not meant as a replacement for other frameworks, under the hood it uses a lot of the magic from Symfony, Cycle and GraphQl.
Purpose
This framework is not intended for building websites or big applications. The purpose of this framework is to provide a simple set of basic tools to build microservices, like:
- Simple webservice
- API proxy to bundle several APIs endpoints into one or leverage legacy APIs
- Data caching layer
- REST/GraphQl API endpoint for headless front-ends
- Socket API endpoint for real-time communication
- Server Sent Events for real-time communication
- Logging service
- CDN
- etc.
Getting started
Install the starter (also see documentation)
composer create-project swift-api/swift-start project_name
Or get it from Composer https://packagist.org/packages/swift-api/swift.
composer require swift-api/swift
Documentation
Find full documentation at https://swiftapi.github.io/swift-docs/docs/