Leanpub Header

Skip to main content

ザクッとLaravel5、Hubサイトでチュートリアル

Hubサイトを構築しながら、Artisanコマンド、イベント、キューについて学びましょう。

Hubサイトを作って学ぶ、Artisanコマンド、イベント、キュー!SlackとTrelloも使います。5.1LTSを対象としています。(注意:5.5LTSがリリースされ、2018年3月2日現在既に5.6が最新版です。内容は2年前のものです。)

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
219
Pages
About

About

About the Book

ざっくりと学ぶ、Hubサイトチュートリアル

Laravelの目立つ部分、ルーターやリクエスト、レスポンスなど、Webサイトの表側で使用される機能は、解説を目にすることが多いでしょう。この書籍は、ひっそりとして目立たない、Laravelの裏の顔について学んでいきます。

チュートリアルに従い、Hubサイトを作っていきましょう。IFTTTやZapireのようなサイトです。でも、目立つWebページは使いません。こっそりとArtisanコマンドとイベントを使って実装します。

学べる知識:

    • コマンドスケジューラー
    Artisanコマンド
  • イベントおよびイベントリスナー
  • キューとジョブクラス
  • Slackのincoming Webhook Integrationの使い方
  • TrelloのAPI呼び出し

Share this book

Categories

Price

Pick Your Price...

Minimum price

$18.00

$18.00

You pay

$18.00

Author earns

$14.40
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Hirohisa Kawase

フレームワークをチェックしている時に、たまたま使用したLaravelに惹かれ、それ以降日本のPHP開発者さんへ紹介しています。

Contents

Table of Contents

  • 初めに
    • 当書について
    • 必要なスキルと要件
    • コードについて
    • 謝辞
    • 改訂版について
  • 1. Laravelの準備
  • 2. コマンド作成と定期実行
    • 2.1 Hello Worldコマンド
    • 2.2 コマンドとサブコマンド
    • 2.3 引数の利用
    • 2.4 オプションの指定
    • 2.5 バリデーションのメッセージの日本語化
    • 2.6 Windowsへの対応
  • 3. Artisanタスクスケジューラー
    • 3.1 cronの形式
    • 3.2 毎分実行する
    • 3.3 毎時、15分に実行する
    • 3.4 2時間おきに実行する
    • 3.5 9:30と21:30に実行する
    • 3.6 毎週月曜から金曜日までの9:30に実行する
    • 3.7 毎月末の22時に実行する
    • 3.8 crontab
    • 3.9 設定内容の確認
    • 3.10 設定内容の編集
    • 3.11 設定内容をまるごと削除
    • 3.12 設定内容をファイルへバックアップ
    • 3.13 バックアップを書き戻す
    • 3.14 ルートユーザーとして設定する
    • 3.15 特定のユーザーとして設定する
    • 3.16 とりあえずは…
    • 3.17 Windows環境
    • 3.18 Artianタスクスケジューラー
    • 3.19 メッセージログコマンド
    • 3.20 スケジューラーの登録
  • 4. イベント
    • 4.1 イベントクラス
    • 4.2 イベントの発行
    • 4.3 イベントリスナー
    • 4.4 実践で試す
    • 4.5 複数リスナー
    • 4.6 イベント伝播の停止
    • 4.7 イベントリスナー処理の優先度
    • 4.8 複数のイベントを受けるリスナー
    • 4.9 継承
    • 4.10 インターフェイスの指定
  • 5. Hubサイトの構造
    • 5.1 Hubサイトの役割
    • 5.2 実現方法
    • 5.3 さらにひと工夫
    • 5.4 ディレクトリー=名前空間の構造
    • 5.5 Artisanコマンド
    • 5.6 イベントクラス
    • 5.7 例外
    • 5.8 イベントリスナー
    • 5.9 チェック&通知ロジック
    • 5.10 コマンドのユニットテスト
  • 6. リマインダー
    • 6.1 reminderコマンド
    • 6.2 Reminderイベントクラス
    • 6.3 MailSenderイベントリスナー
    • 6.4 使ってみる
    • 6.5 拡張
  • 7. 新規メール受信チェック
    • 7.1 .evnの設定
    • 7.2 Artisanコマンド
    • 7.3 イベントクラス
    • 7.4 新着メール取得サービスクラス
    • 7.5 チェックロジッククラス
    • 7.6 確認
    • 7.7 スケジューラー
    • 7.8 応用
  • 8. Trello
    • 8.1 APIの認証情報の取得
    • 8.2 チュートリアル用のボード
  • 9. Trelloのカードチェック
    • 9.1 イベント
    • 9.2 Artisanコマンド
    • 9.3 JSON/配列変換サービス
    • 9.4 保存情報取得サービス
    • 9.5 GETメソッド通信クラス
    • 9.6 チェックロジッククラス
    • 9.7 イベント/リスナーの登録
  • 10. Trelloへカードを追加する
    • 10.1 イベントリスナー
    • 10.2 POSTメソッド通信クラス
    • 10.3 イベントとリスナーの指定
    • 10.4 個人用のデータ一覧として活用
  • 11. Slack
    • 11.1 チームの作成
    • 11.2 Incoming Webhookの準備
    • 11.3 無料サービスの制限
  • 12. Slackへ通知
    • 12.1 イベントリスナー
  • 13. RSSフィードの取得
    • 13.1 パッケージ導入
    • 13.2 Artisanコマンド
    • 13.3 イベントクラス
    • 13.4 チェックロジック
    • 13.5 機能追加
  • 14. 情報収集パネル - 準備編
    • 14.1 TrelloオブジェクトID取得コマンド
    • 14.2 PUTメソッド通信
    • 14.3 Trello API
  • 15. 情報収集パネル - サイトモニタリング編
    • 15.1 動作
    • 15.2 Artisanコマンド
    • 15.3 チェックロジック
    • 15.4 イベントインターフェイス
    • 15.5 サイトダウンインベント
    • 15.6 サイト起動イベント
    • 15.7 イベントリスナー
    • 15.8 イベントとリスナーの指定
    • 15.9 スケジューラーの登録
  • 16. 情報収集パネル - バッチ起動編
    • 16.1 イベントリスナー
    • 16.2 試してみる
  • 17. キュー
    • 17.1 キューの概論
    • 17.2 キューの利用
    • 17.3 4.2 vs. 5.x
    • 17.4 キューの準備
  • 18. イベントリスナーのキュー
  • 19. バッチ・キュー!
    • 19.1 hub:dotasksコマンドの変更
    • 19.2 Jobクラス
  • 20. Wunderlistでタスクコピー
  • 21. 最後に

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub