Getting Started with Laravel 4
暫譯: Laravel 4 入門指南

Raphael Saunier

  • 出版商: Packt Publishing
  • 出版日期: 2014-01-20
  • 售價: $1,520
  • 貴賓價: 9.5$1,444
  • 語言: 英文
  • 頁數: 128
  • 裝訂: Paperback
  • ISBN: 1783287039
  • ISBN-13: 9781783287031
  • 相關分類: Laravel
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Discover Laravel – one of the most expressive, robust, and flexible PHP web application frameworks around

Overview

  • Provides a concise introduction to all the concepts needed to get started with Laravel
  • Walks through the different steps involved in creating a complete Laravel application
  • Gives an overview of Laravel's advanced features that can be used when applications grow in complexity
  • Learn how to build structured, more maintainable, and more secure applications with less code by using Laravel

In Detail

PHP powers many of the largest websites on the planet. Yet, even though it was specifically created for the Web, its shortcomings never cease to frustrate developers. This is where a tool like Laravel comes in. Rather than reinventing the wheel, Laravel reuses tried and tested components and principles and bundles them to form a cohesive whole and makes PHP development enjoyable again.

Getting Started with Laravel 4 is a practical and concise introduction to the Laravel PHP framework. It covers its fundamental concepts and presents the many features that will boost your productivity when developing web applications. After introducing the key concepts and installing Composer, you will build a CRUD application and add more features to it in each successive chapter.

This book introduces you to a different and more enjoyable way of writing PHP applications. You will start by learning about the key principles and the same development practices that Laravel encourages. Then, in subsequent chapters, you will create and successively add more features to a web application.

You will learn how to use the arsenal of tools at your disposal and probably pick up some useful techniques along the way. Indeed, everything you will learn in this book is highly transferrable and applicable to other MVC frameworks. Laravel's routing mechanism, templating language, and object-relational mapper will have no more secrets for you. You will learn how to authenticate users, write tests, and create command line utilities that interact with your application with disconcerting ease. In addition to this, you will probably be surprised by the simplicity and expressiveness of your code.

What you will learn from this book

  • Install Laravel and other PHP packages with Composer
  • Sketch out and structure your application with routes and controllers
  • Create hierarchical templates with Blade
  • Define models and how to issue database queries in PHP with Eloquent
  • Authenticate users securely with minimal effort
  • Avoid security issues and write bulletproof code
  • Develop with confidence with the help of tests
  • Set up and create powerful command line utilities

Approach

This book follows a practical and easy-to-follow approach and is packed with real-world examples to understand all the fundamentals and concepts in a very concise way.

Who this book is written for

This book is ideal for web developers who want to get up to speed with Laravel quickly. You are expected to have some experience with the PHP programming language - or any C-like languages such as JavaScript , Perl, or Java along with some understanding of basic OOP concepts. Any experience with MVC frameworks such as ASP.NET MVC or Ruby on Rails will certainly be beneficial but not required. Lastly, some familiarity with command line interfaces will also help but is not essential either.

商品描述(中文翻譯)

發現 Laravel – 這是最具表現力、穩健且靈活的 PHP 網頁應用程式框架之一

概述
- 提供所有開始使用 Laravel 所需概念的簡明介紹
- 逐步講解創建完整 Laravel 應用程式的不同步驟
- 概述 Laravel 的進階功能,當應用程式變得更複雜時可以使用
- 學習如何使用 Laravel 建立結構化、可維護性更高且更安全的應用程式,並減少程式碼量

詳細內容
PHP 驅動著許多全球最大的網站。然而,儘管它是專為網路而創建的,但其缺點仍然讓開發者感到沮喪。這就是 Laravel 這樣的工具派上用場的地方。Laravel 並不是重新發明輪子,而是重用經過驗證的組件和原則,並將它們打包成一個有機整體,讓 PHP 開發再次變得愉快。

《Getting Started with Laravel 4》是對 Laravel PHP 框架的實用且簡明的介紹。它涵蓋了基本概念,並展示了許多在開發網頁應用程式時能提升生產力的功能。在介紹關鍵概念並安裝 Composer 之後,您將建立一個 CRUD 應用程式,並在每一章中為其添加更多功能。

本書向您介紹了一種不同且更愉快的 PHP 應用程式編寫方式。您將首先學習 Laravel 鼓勵的關鍵原則和相同的開發實踐。然後,在隨後的章節中,您將創建並逐步為網頁應用程式添加更多功能。

您將學會如何使用手頭的工具組,並可能在過程中掌握一些有用的技術。事實上,您在本書中學到的所有內容都可以高度轉移並應用於其他 MVC 框架。Laravel 的路由機制、模板語言和物件關聯映射器將不再對您有任何秘密。您將學會如何驗證用戶、編寫測試,並創建與您的應用程式互動的命令行工具,這一切都將變得輕而易舉。此外,您可能會對您的程式碼的簡單性和表現力感到驚訝。

您將從本書中學到的內容
- 使用 Composer 安裝 Laravel 和其他 PHP 套件
- 使用路由和控制器勾勒和結構化您的應用程式
- 使用 Blade 創建層次化模板
- 定義模型以及如何使用 Eloquent 在 PHP 中發出資料庫查詢
- 以最小的努力安全地驗證用戶
- 避免安全問題並編寫防彈程式碼
- 在測試的幫助下自信地開發
- 設置和創建強大的命令行工具

方法
本書採用實用且易於遵循的方法,並充滿了現實世界的範例,以非常簡明的方式理解所有基本概念和原則。

本書的讀者對象
本書非常適合希望快速掌握 Laravel 的網頁開發者。您應該對 PHP 程式語言有一些經驗,或者對任何類似 C 的語言(如 JavaScript、Perl 或 Java)有一定了解,並具備基本的物件導向程式設計概念。對於 MVC 框架(如 ASP.NET MVC 或 Ruby on Rails)的任何經驗將是有益的,但不是必需的。最後,對命令行介面的熟悉程度也會有所幫助,但並非必需。