Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
If you're not in the mood to read, Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page:
- Vehikl
- Tighten Co.
- British Software Development
- Fragrantica
- SOFTonSOFA
- User10
- Soumettre.fr
- CodeBrisk
- 1Forge
- TECPRESSO
- Pulse Storm
- Runtime Converter
- WebL'Agence
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.
- エンティティ
ビジネスルールを含むコード。 DDDでいうドメイン層。packages/Domain 配下に格納。
- ユースケース
システムのユースケースを含むコード。 ユースケースはエンティティに依存し、エンティティはユースケースに依存しない。 入力としてリクエストデータ構造を受け取り、出力としてレスポンスデータ構造を戻す。どちらもシンプルな構造でフレームワークに依存したものではない。 ユーザインターフェースに関する事も把握しない。 DDDで言うアプリケーション層。packages/App 配下に格納。
- インターフェースアダプター
ユースケースやエンティティに便利なフォーマットから、DBやWEBなどの外部エージェントに便利なフォーマットにデータを変換するアダプター。 コントローラ・ゲートウェイ・プレゼンターがこの層にあたる。 packages/Adapter 配下に格納。
ソースコードの依存性は内側の層だけに向かっていなければならない。
Controllerはウェブなどの外部から入力されたデータを受け取り、ユースケースにとって都合のいい構造に変換してユースケースに渡す。 その変換されたフォーマットの事をInputDataとしている。
ユースケースでは、自身にとって都合のいいフォーマットから、ウェブなどの外部エージェントに便利なフォーマットにデータを変換して、プレゼンターに渡す。 その変換されたフォーマットの事をOutputDataとしている。
ここに含まれるのはViewがデータの表示に使用する文字列やフラグ。 例えば、ユースケース層の戻り値であるOutputDataにDateオブジェクトが含まれることもあるが、 Presenterはユーザのために適切にフォーマットされた文字列を含んだViewModelを読み込む。 Viewでは、ViewModelからHTMLページにデータを移動することのみを任せる。