Skip to content

Commit

Permalink
Apache support and documentation (#12)
Browse files Browse the repository at this point in the history
Added:
- Support for Apache on docker init
- Documentation for Apache configuration

Fixed:
- Documentation on paramters
- README.MD documentation

Improved:
- Code for commands
- Unit tests migrated to PHP Unit 11
  • Loading branch information
willitscale authored Feb 18, 2024
1 parent 514145e commit b65fb32
Show file tree
Hide file tree
Showing 50 changed files with 946 additions and 916 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Here's all the code you need to get going:
```php
<?php declare(strict_types=1);

require_once 'vendor/autoload.php';

use willitscale\Streetlamp\Router;

(new Router())->route();
Expand All @@ -57,6 +59,10 @@ A controller can be defined by simply giving a class the attribute of `RouteCont
```php
<?php declare(strict_types=1);

namespace Example;

use willitscale\Streetlamp\Attributes\Controller\RouteController;

#[RouteController]
class MyRouteClass {
}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
}
],
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "*"
"squizlabs/php_codesniffer": "*",
"phpunit/phpunit": "^11.0"
},
"require": {
"psr/log": "^3.0",
Expand Down
Loading

0 comments on commit b65fb32

Please sign in to comment.