Coder Social home page Coder Social logo

slim's Introduction

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 

slim's People

Contributors

umanari145 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.