├── .github └── workflows │ └── ci.yml ├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml ├── public └── index.php ├── src ├── API │ └── Http │ │ ├── Controller │ │ └── ExampleController.php │ │ ├── Provider │ │ └── ApplicationControllerProvider.php │ │ └── Request │ │ └── SymfonyHttpRequestInterceptor.php ├── Application.php ├── Core │ ├── Bootstrap.php │ ├── Facades │ │ ├── ContainerDI.php │ │ ├── Database.php │ │ └── DatabaseOperation.php │ └── Infrastructure │ │ ├── DI │ │ ├── Container.php │ │ ├── ContainerRegistry.php │ │ └── Exception │ │ │ ├── EntryNotFoundException.php │ │ │ └── MissingContainerRegisterException.php │ │ ├── Database │ │ ├── Connection.php │ │ ├── DatabaseConnection.php │ │ ├── DatabaseProvider.php │ │ ├── Query │ │ │ ├── Grammar │ │ │ │ └── Comparison.php │ │ │ ├── Operation │ │ │ │ ├── DeleteFacade.php │ │ │ │ ├── Facade.php │ │ │ │ ├── InsertFacade.php │ │ │ │ ├── SelectFacade.php │ │ │ │ └── UpdateFacade.php │ │ │ ├── Param.php │ │ │ ├── ParamCollection.php │ │ │ └── Statement.php │ │ └── Result.php │ │ └── Http │ │ ├── Controller.php │ │ ├── ControllerProvider.php │ │ ├── Request │ │ ├── HttpRequestInterceptor.php │ │ ├── RequestHandler.php │ │ ├── Route.php │ │ ├── RouteCollection.php │ │ └── RouteHandler.php │ │ ├── Response.php │ │ └── Response │ │ ├── Factory │ │ └── JsonResponseFactory.php │ │ ├── JsonResponse.php │ │ └── ResponseHandler.php ├── DI │ └── ApplicationContainer.php └── Database │ ├── ApplicationDatabaseProvider.php │ └── Connection │ └── SQLiteAdapter.php └── tests ├── ApplicationTest.php ├── Core ├── Facades │ ├── ContainerDITest.php │ └── DatabaseTest.php └── Infrastructure │ ├── DI │ ├── ContainerRegistryTest.php │ ├── ContainerTest.php │ └── Support │ │ ├── DummyInstanceForContainerDI.php │ │ └── SupportInterfaceContainerDI.php │ ├── Database │ ├── Factory │ │ └── DatabaseConnectionTest.php │ └── Query │ │ └── Operation │ │ ├── DeleteFacadeTest.php │ │ ├── InsertFacadeTest.php │ │ ├── SelectFacadeTest.php │ │ └── UpdateFacadeTest.php │ └── Http │ ├── Request │ ├── RequestHandlerTest.php │ ├── RouteCollectionTest.php │ ├── RouteHandlerTest.php │ └── RouteTest.php │ └── Response │ └── JsonResponseTest.php ├── Database └── Connection │ └── SQLiteAdapterTest.php └── Helpers ├── API └── Http │ └── FakeController.php └── Database └── Connection └── DummyDatabase.php /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/phpunit.xml -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/public/index.php -------------------------------------------------------------------------------- /src/API/Http/Controller/ExampleController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/API/Http/Controller/ExampleController.php -------------------------------------------------------------------------------- /src/API/Http/Provider/ApplicationControllerProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/API/Http/Provider/ApplicationControllerProvider.php -------------------------------------------------------------------------------- /src/API/Http/Request/SymfonyHttpRequestInterceptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/API/Http/Request/SymfonyHttpRequestInterceptor.php -------------------------------------------------------------------------------- /src/Application.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Application.php -------------------------------------------------------------------------------- /src/Core/Bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Bootstrap.php -------------------------------------------------------------------------------- /src/Core/Facades/ContainerDI.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Facades/ContainerDI.php -------------------------------------------------------------------------------- /src/Core/Facades/Database.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Facades/Database.php -------------------------------------------------------------------------------- /src/Core/Facades/DatabaseOperation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Facades/DatabaseOperation.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/DI/Container.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/DI/Container.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/DI/ContainerRegistry.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/DI/ContainerRegistry.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/DI/Exception/EntryNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/DI/Exception/EntryNotFoundException.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/DI/Exception/MissingContainerRegisterException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/DI/Exception/MissingContainerRegisterException.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Connection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Connection.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/DatabaseConnection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/DatabaseConnection.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/DatabaseProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/DatabaseProvider.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Grammar/Comparison.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Grammar/Comparison.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Operation/DeleteFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Operation/DeleteFacade.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Operation/Facade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Operation/Facade.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Operation/InsertFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Operation/InsertFacade.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Operation/SelectFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Operation/SelectFacade.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Operation/UpdateFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Operation/UpdateFacade.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Param.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Param.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/ParamCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/ParamCollection.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Query/Statement.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Query/Statement.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Database/Result.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Database/Result.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Controller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Controller.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/ControllerProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/ControllerProvider.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Request/HttpRequestInterceptor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Request/HttpRequestInterceptor.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Request/RequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Request/RequestHandler.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Request/Route.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Request/Route.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Request/RouteCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Request/RouteCollection.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Request/RouteHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Request/RouteHandler.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Response.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Response/Factory/JsonResponseFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Response/Factory/JsonResponseFactory.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Response/JsonResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Response/JsonResponse.php -------------------------------------------------------------------------------- /src/Core/Infrastructure/Http/Response/ResponseHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Core/Infrastructure/Http/Response/ResponseHandler.php -------------------------------------------------------------------------------- /src/DI/ApplicationContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/DI/ApplicationContainer.php -------------------------------------------------------------------------------- /src/Database/ApplicationDatabaseProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Database/ApplicationDatabaseProvider.php -------------------------------------------------------------------------------- /src/Database/Connection/SQLiteAdapter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/src/Database/Connection/SQLiteAdapter.php -------------------------------------------------------------------------------- /tests/ApplicationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/ApplicationTest.php -------------------------------------------------------------------------------- /tests/Core/Facades/ContainerDITest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Facades/ContainerDITest.php -------------------------------------------------------------------------------- /tests/Core/Facades/DatabaseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Facades/DatabaseTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/DI/ContainerRegistryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/DI/ContainerRegistryTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/DI/ContainerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/DI/ContainerTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/DI/Support/DummyInstanceForContainerDI.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/DI/Support/DummyInstanceForContainerDI.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/DI/Support/SupportInterfaceContainerDI.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/DI/Support/SupportInterfaceContainerDI.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Database/Factory/DatabaseConnectionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Database/Factory/DatabaseConnectionTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Database/Query/Operation/DeleteFacadeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Database/Query/Operation/DeleteFacadeTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Database/Query/Operation/InsertFacadeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Database/Query/Operation/InsertFacadeTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Database/Query/Operation/SelectFacadeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Database/Query/Operation/SelectFacadeTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Database/Query/Operation/UpdateFacadeTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Database/Query/Operation/UpdateFacadeTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Http/Request/RequestHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Http/Request/RequestHandlerTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Http/Request/RouteCollectionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Http/Request/RouteCollectionTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Http/Request/RouteHandlerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Http/Request/RouteHandlerTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Http/Request/RouteTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Http/Request/RouteTest.php -------------------------------------------------------------------------------- /tests/Core/Infrastructure/Http/Response/JsonResponseTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Core/Infrastructure/Http/Response/JsonResponseTest.php -------------------------------------------------------------------------------- /tests/Database/Connection/SQLiteAdapterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Database/Connection/SQLiteAdapterTest.php -------------------------------------------------------------------------------- /tests/Helpers/API/Http/FakeController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Helpers/API/Http/FakeController.php -------------------------------------------------------------------------------- /tests/Helpers/Database/Connection/DummyDatabase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yknsilva/phractico/HEAD/tests/Helpers/Database/Connection/DummyDatabase.php --------------------------------------------------------------------------------