https://github.com/umanari145/slim
slim
https://github.com/umanari145/slim
eloquent monolog php-di slim
Last synced: about 1 month ago
JSON representation
slim
- Host: GitHub
- URL: https://github.com/umanari145/slim
- Owner: umanari145
- Created: 2021-02-20T04:07:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T13:35:07.000Z (about 3 years ago)
- Last Synced: 2025-02-12T15:19:10.970Z (3 months ago)
- Topics: eloquent, monolog, php-di, slim
- Language: PHP
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slim
## 参考文献
「PHPマイクロフレームワーク Slim Webアプリケーション開発」## 参考URL
https://qiita.com/erik_t/items/14d0103e343e440f6dc5#container
https://odan.github.io/2019/11/05/slim4-tutorial.html## フォルダ構成
- public 公開フォルダ
- .htaccess 直接のファイル、ディレクトリ以外を全てindexに遷移させるhtaccess
- index.php エントリーポイント- config 設定情報全般
- bootstrap.php public/indexの流れを受けて全ての処理が走る
- container.php DIコンテナ
- route ルーティング
- base.php 基本のルーティング
- middlware
- AuthMiddleweare.php 認証ミドルウェア
- RenderingMiddleweare.php Rendering後のミドルウェア- src
- Controller コントローラー
BaseController 基底になるController
- Lib ライブラリ
- Person Personディレクトリ
- PersonInterface PersonInterface
- Man.php 男性クラス
- Woman.php 女性クラス- Exceptions 例外エラー
- CustomErrorRenderer 独自例外エラー- view TwigのHTMLファイル
- exceptions 例外クラス
- error403.html 403はこの画面
- error404.html 404はこの画面
- error500.html 500はこの画面## ライブラリ
- monolog PHPのログライブラリ
- Eloquent Laravelに入っているORマッパー
- PHP-di PHP用DIコンテナ
- symfony/var-dumper dump()でエラーをわかりやすく見せるデバッグライブラり## migration
column定義
```
php ./migrations/column_definetion.php
```faker
```
php ./migrations/sample_data.php
```