File tree Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Expand file tree Collapse file tree 3 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 1+ # Fast Forward Framework
2+
3+ [ ![ License: MIT] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( LICENSE )
4+ [ ![ PHP Version] ( https://img.shields.io/badge/php-^8.2-blue.svg )] ( https://www.php.net/releases/ )
5+
6+ ** Fast Forward** is a lightweight and fast PHP framework designed for building modern web applications.
7+ This package serves as an ** aggregate metapackage** , bundling all http components of the Fast Forward ecosystem for easier installation and management.
8+
9+ ---
10+
11+ ## Features
12+
13+ - 🚀 ** Modern PHP 8.2+ syntax**
14+ - ⚙️ Aggregates key components:
15+ - [ ` fast-forward/http-message ` ] ( https://github.com/php-fast-forward/http-message ) – PSR-7 compatible HTTP message implementation
16+ - [ ` fast-forward/http-factory ` ] ( https://github.com/php-fast-forward/http-factory ) – HTTP factory for creating PSR-7 request and response objects
17+ - [ ` fast-forward/http-client ` ] ( https://github.com/php-fast-forward/http-client ) – PSR-18 compatible HTTP client for making requests
18+ - 📦 Simplifies installation of all http packages in one step
19+ - 🧱 Provides a solid foundation for building scalable Http PHP applications
20+
21+ ---
22+
23+ ## Installation
24+
25+ Install via [ Composer] ( https://getcomposer.org ) :
26+
27+ ``` bash
28+ composer require fast-forward/http
29+ ```
30+
31+ This command will automatically pull in all the required dependencies of the framework.
32+
33+ ---
34+
35+ ## Requirements
36+
37+ - PHP 8.2 or higher
38+
39+ ---
40+
41+ ## License
42+
43+ Fast Forward Framework is licensed under the [ MIT license] ( LICENSE ) .
44+
45+ ---
46+
47+ ## Author
48+
49+ Developed with ❤️ by ** Felipe Sayão Lobato Abreu**
50+
Original file line number Diff line number Diff line change 1616 },
1717 "require" : {
1818 "php" : " ^8.2" ,
19+ "fast-forward/container" : " ^1.5" ,
1920 "fast-forward/http-client" : " ^1.0" ,
2021 "fast-forward/http-factory" : " ^1.1" ,
2122 "middlewares/utils" : " ^4.0"
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace FastForward \Http \ServiceProvider ;
4+
5+ use FastForward \Container \ServiceProvider \AggregateServiceProvider ;
6+ use FastForward \Http \Client \ServiceProvider \HttpClientServiceProvider ;
7+ use FastForward \Http \Message \Factory \ServiceProvider \HttpMessageFactoryServiceProvider ;
8+ use Interop \Container \ServiceProviderInterface ;
9+
10+ final class HttpServiceProvider implements ServiceProviderInterface
11+ {
12+ private ServiceProviderInterface $ serviceProvider ;
13+
14+ public function __construct ()
15+ {
16+ $ this ->serviceProvider = new AggregateServiceProvider (
17+ new HttpMessageFactoryServiceProvider (),
18+ new HttpClientServiceProvider (),
19+ );
20+ }
21+
22+ public function getFactories (): array
23+ {
24+ return $ this ->serviceProvider ->getFactories ();
25+ }
26+
27+ public function getExtensions (): array
28+ {
29+ return $ this ->serviceProvider ->getExtensions ();
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments