このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
apricot:usage:ja [2020/07/29 12:43] tanaka [目次] |
apricot:usage:ja [2020/09/18 08:36] y2sunlight |
||
---|---|---|---|
行 1: | 行 1: | ||
- | > 編集中 | + | ====== Apricot |
- | + | ||
- | ---- | + | |
- | + | ||
- | ====== Apricotの使用法 | + | |
Version 1.0 ([[apricot: | Version 1.0 ([[apricot: | ||
--- // | --- // | ||
- | Apricot は素早く簡単なWebアプリケーションを作るためのPHPの軽量フレームワークです。 | + | Apricot は素早く簡単なWebアプリケーションを作るためのPHPによる軽量フレームワークです。 |
+ | |||
+ | === ドキュメント 目次 === | ||
+ | |||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | * [[apricot: | ||
+ | |||
+ | ===== 要件 ===== | ||
- | 要件 | ||
* PHP 7.3 以上 | * PHP 7.3 以上 | ||
行 28: | 行 41: | ||
\\ | \\ | ||
- | |||
===== インストール ===== | ===== インストール ===== | ||
行 35: | 行 47: | ||
<code sh> | <code sh> | ||
- | composer create-project y2sunlight/ | + | composer create-project y2sunlight/ |
</ | </ | ||
行 41: | 行 53: | ||
<code sh> | <code sh> | ||
- | git clone https:// | + | git clone https:// |
- | cd your-project | + | cd your-project-name |
composer install --dev | composer install --dev | ||
</ | </ | ||
行 49: | 行 61: | ||
<code sh> | <code sh> | ||
- | cd your-project | + | cd your-project-name |
cp .env.sample .env | cp .env.sample .env | ||
- | </ | ||
- | |||
- | === ライブラリとしての使用 === | ||
- | |||
- | もちろん、以下のようにライブラリーとしても使用できます。 | ||
- | |||
- | <code sh> | ||
- | composer require y2sunlight/ | ||
</ | </ | ||
行 70: | 行 74: | ||
<code sh> | <code sh> | ||
- | php -S localhost: | + | php -S localhost: |
</ | </ | ||
そして、以下のURLにアクセスしてください。 | そして、以下のURLにアクセスしてください。 | ||
- | * http:// | + | * http:// |
Apricotプロジェクトの「ログインページ」が表示されるのでログインして下さい。デフォルトのアカウントIDは '' | Apricotプロジェクトの「ログインページ」が表示されるのでログインして下さい。デフォルトのアカウントIDは '' | ||
行 81: | 行 85: | ||
\\ | \\ | ||
- | ===== ドキュメント | + | ===== ライブラリとしての使用 |
- | 詳しくは以下のドキュメントをご覧下さい。 | + | ライブラリーとして使用する場合は、[[https:// |
+ | === apricot-skeleton === | ||
- | ==== 目次 ==== | + | インストール: |
+ | <code sh> | ||
+ | composer create-project y2sunlight/ | ||
+ | </ | ||
- | * [[apricot: | + | スケルトンの作成: |
- | * [[apricot: | + | <code sh> |
- | * [[apricot: | + | cd your-app-name |
- | * [[apricot: | + | php apricot.php build |
- | * [[apricot: | + | </ |
- | | + | |
- | * [[apricot: | + | スケルトンをインストール後は、上の[[# |
- | * [[apricot: | + | |
+ | 詳しくは、[[https:// | ||
\\ | \\ |