https://github.com/antidot-framework/installer
https://github.com/antidot-framework/installer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/antidot-framework/installer
- Owner: antidot-framework
- License: bsd-2-clause
- Created: 2020-08-21T15:47:20.000Z (almost 5 years ago)
- Default Branch: 1.0.x
- Last Pushed: 2022-11-08T18:00:50.000Z (over 2 years ago)
- Last Synced: 2025-01-06T07:23:27.063Z (6 months ago)
- Language: PHP
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Antidot Framework Installer
=================[](https://scrutinizer-ci.com/g/antidot-framework/installer/?branch=master)
[](https://scrutinizer-ci.com/g/antidot-framework/installer/?branch=master)
[](https://scrutinizer-ci.com/g/antidot-framework/installer/build-status/master)
[](https://scrutinizer-ci.com/code-intelligence)
[](https://codeclimate.com/github/antidot-framework/installer/maintainability)Antidot Framework skeleton installer. This package let you choosing between different types of Antidot framework project skeletons:
* Classic Web App
* Serverless App
* Console Line Tool
* Micro Http App
* React Http App## Requirements
* PHP >= 7.4.0 for current
* Composer## Micro HTTP App
Lightweight PSR-15 middleware application.
### Dependencies
* [Antidot Framework]()
* [Antidot Container]()
* [Antidot Fast Router Adapter]()### Routing
You can add your routes with it custom middlewares in `public/index.php` file, take a look at the example:
```php
get('/', [
static function(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface {
$request = $request->withAttribute('docs_url', 'https://antidotfw.io');
return $handler->handle($request);
},
static function(ServerRequestInterface $request): ResponseInterface {
return new JsonResponse([
'message' => 'Welcome to Antidot Framework Micro HTTP App.',
'docs' => $request->getAttribute('docs_url'),
]);
}
], 'homepage');
...```
### File structure
```
config/
config.php
container.php
framework.prod.php
public/
index.php
test/
var/
cache/
.gitignore
composer.json
phpcs.xml.dist
phpunit.xml.dist
README.md
```## Docker environment