メインメニュー
XAMPP アレンジ
IED
WSL2
-
道具箱
リポジトリ編
フレームワーク編
公開ソフトウェア
メタ
リンク
- PHP ライブラリ
- PHP 言語
apricot:topPHP自作フレームワーク:Apricotの製作過程
Version 0.9 (MIT License)
— y2sunlight 2020-03-24
本章では筆者の自作フレームワークであるApricotの製作過程を紹介します。
Apricotは必要最小限の外部ライブラリ(パッケージ)だけを集めた「ステイプルワーク」です。それはアプリケーションによりステイプルワーク自体のカスタマイズを前提としています。ライブラリに含まれていない機能(構成管理、イベントハンドラ、パイプラインやレスポンス処理など)は自作しますが、PHPは本来Webアプリケーションの為の言語なので、その特性を最大限に利用しApricotには極力軽量なコードを実装します。また、ライブラリ間の結合性を「疎」にすることで後で他のライブラリに変更できるように配慮します。
本編では、Apricotの製作過程を示します。Apricotにはユーザ認証とユーザアカウントの編集機能だけが実装されています。手順通りに行えばちょっとしたフレームワークが完成します。「ちょっとしたアプリ」には「ちょっとしたフレームワーク」の方が似合っています。一度作ってしまえば、後の修正は自由自在です。
尚、Apricot (α版)のEclipseによるプロジェクト作成方法と、使用パッケージのComposeによるインストール方法等については、「定番ライブラリ」を参照して下さい。
開発環境
- XAMPP 7.3.15
- PHP 7.3.15 (VC15 X86 64bit thread safe)
Eclipse 2019-12 — PHP Windows 64bit版Composer 1.10.1使用パッケージ
機能 パッケージ名 Vsersion 環境変数 phpdotenv 4.1 ログ出力 monolog 2.0 ORマッパー idiorm 1.5 テンプレートエンジン bladeone 3.37 リクエストルーター FastRoute 1.3 DIコンテナー League/Container 3.3 バリデーター Valitron 1.4 エラーハンドラー Whoops 2.7 デバッグ出力 php-debugbar 1.16
目次
- Apricot コア
- Apricot アプリ
- Apricot 拡張
Apricot is available on GitHub
Apricot(V1.0) published on GitHub and Apricot(0.9) published in this site are different versions.
GitHub公開しているApricot(v1.0)と本編で掲載しているApricot(v0.9)は異なったバージョンです。Documentation
apricot/top.txt · 最終更新: 2020/09/23 12:35 by y2sunlight
コメント
https://www.eroticmassageworld.com/erotic-massage-in-milan-italy.html |
https://www.eroticmassageworld.com/erotic-massage-in-copenhagen.html |
https://www.eroticmassageworld.com/erotic-massage-in-brussels-belgium.html |
https://www.eroticmassageworld.com/erotic-massage-in-paris.html |
https://www.eroticmassageworld.com/erotic-massage-in-berlin.html |
https://www.eroticmassageworld.com/erotic-massage-in-riyadh-saudi-arabia.html |
https://www.eroticmassageworld.com/erotic-massage-in-madrid.html |
https://www.eroticmassageworld.com/erotic-massage-in-kiev.html |
https://www.eroticmassageworld.com/erotic-massage-in-amsterdam.html |
https://www.eroticmassageworld.com/erotic-massage-in-prague.html |
https://www.eroticmassageworld.com/erotic-massage-in-dubai-united-arab-emirates.html |
https://www.eroticmassageworld.com/erotic-massage-in-moscow.html |
https://www.eroticmassageworld.com/erotic-massage-in-kuala-lumpur-malaysia.html |
https://www.eroticmassageworld.com/erotic-massage-in-london-england.html |
https://www.eroticmassageworld.com/erotic-massage-in-petersburg.html |
https://www.eroticmassageworld.com/erotic-massage-in-lviv.html |
https://www.eroticmassageworld.com/erotic-massage-in-vienna.html |
https://www.eroticmassageworld.com/erotic-massage-in-kazan.html |
https://www.eroticmassageworld.com/erotic-massage-in-barcelona.html |
https://www.eroticmassageworld.com/erotic-massage-in-thessaloniki.html |
https://www.eroticmassageworld.com/erotic-massage-in-hong-kong.html |
https://www.eroticmassageworld.com/erotic-massage-in-tokyo-japan.html |
https://www.eroticmassageworld.com/erotic-massage-in-nicosia-cyprus.html |
https://www.eroticmassageworld.com/erotic-massage-in-limassol-cyprus.html |
https://www.eroticmassageworld.com/erotic-massage-in-sofia-bulgaria.html |
https://www.eroticmassageworld.com/erotic-massage-in-athens-greece.html |
https://www.eroticmassageworld.com/erotic-massage-in-perth.html |
https://www.eroticmassageworld.com/erotic-massage-in-sydney.html |
https://www.eroticmassageworld.com/erotic-massage-in-melbourne.html |
https://www.eroticmassageworld.com/erotic-massage-in-baku.html |
https://www.eroticmassageworld.com/erotic-massage-in-vancouver.html |
https://www.eroticmassageworld.com/erotic-massage-in-shanghai.html |
https://www.eroticmassageworld.com/erotic-massage-in-bogota.html |
https://www.eroticmassageworld.com/lviv.html |
https://www.eroticmassageworld.com/kiev.html |
https://www.eroticmassageworld.com/kiev.html |
https://www.eroticmassageworld.com/kazan.html |
https://www.eroticmassageworld.com/petersburg.html |
https://www.eroticmassageworld.com/escort-girls-in-berlin.html |
https://www.eroticmassageworld.com/escort-girls-in-riyadh.html |
https://www.eroticmassageworld.com/escort-girls-in-kiev.html |
https://www.eroticmassageworld.com/escort-girls-in-petersburg.html |
https://www.eroticmassageworld.com/escort-girls-in-prague.html |
https://www.eroticmassageworld.com/escort-girls-in-amsterdam.html |
https://www.eroticmassageworld.com/escort-girls-in-paris.html |
https://www.eroticmassageworld.com/escort-girls-in-moscow.html |
https://www.eroticmassageworld.com/escort-girls-in-madrid.html |
https://www.eroticmassageworld.com/escort-girls-in-kazan.html |
https://www.eroticmassageworld.com/escort-girls-in-lviv.html |
https://www.eroticmassageworld.com/escort-girls-in-barcelona.html |
https://www.eroticmassageworld.com/escort-girls-in-thessaloniki.html |
https://www.eroticmassageworld.com/escort-girls-in-brussels.html |
https://www.eroticmassageworld.com/escort-girls-in-hong-kong.html |
https://www.eroticmassageworld.com/escort-girls-in-tokyo.html |
https://www.eroticmassageworld.com/escort-girls-in-kuala-lumpur.html |
https://www.eroticmassageworld.com/escort-girls-in-nicosia.html |
https://www.eroticmassageworld.com/escort-girls-in-limassol.html |
https://www.eroticmassageworld.com/escort-girls-in-milan.html |
https://www.eroticmassageworld.com/escort-girls-in-dubai.html |
https://www.eroticmassageworld.com/escort-girls-in-sofia.html |
https://www.eroticmassageworld.com/escort-girls-in-london.html |
https://www.eroticmassageworld.com/escort-girls-in-athens.html |
https://www.eroticmassageworld.com/escort-girls-in-sydney.html |
https://www.eroticmassageworld.com/escort-girls-in-baku.html |
https://www.eroticmassageworld.com/escort-girls-in-perth.html |
https://www.eroticmassageworld.com/escort-girls-in-vienna.html |
https://www.eroticmassageworld.com/escort-girls-in-vancouver.html |
https://www.eroticmassageworld.com/escort-girls-in-melbourne.html |
https://www.eroticmassageworld.com/escort-girls-in-shanghai.html |
https://www.eroticmassageworld.com/escort-girls-in-copenhagen.html |
https://www.eroticmassageworld.com/escort-girls-in-bogota.html |
https://www.eroticmassageworld.com/escort-mykonos.html |
https://www.eroticmassageworld.com/escort-corfu.html |
https://www.eroticmassageworld.com/escort-santorini.html |
https://www.eroticmassageworld.com/escort-heraklion.html |