「PHPマイクロフレームワーク Slim Webアプリケーション開発」
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 女性クラス
- Person Personディレクトリ
-
Exceptions 例外エラー
- CustomErrorRenderer 独自例外エラー
-
-
view TwigのHTMLファイル
- exceptions 例外クラス
- error403.html 403はこの画面
- error404.html 404はこの画面
- error500.html 500はこの画面
- exceptions 例外クラス
- monolog PHPのログライブラリ
- Eloquent Laravelに入っているORマッパー
- PHP-di PHP用DIコンテナ
- symfony/var-dumper dump()でエラーをわかりやすく見せるデバッグライブラり
column定義
php ./migrations/column_definetion.php
faker
php ./migrations/sample_data.php