Symfony2 Essentials
Wojciech Bancer
- 出版商: Packt Publishing
- 出版日期: 2015-09-08
- 售價: $1,440
- 貴賓價: 9.5 折 $1,368
- 語言: 英文
- 頁數: 158
- 裝訂: Paperback
- ISBN: 1784398764
- ISBN-13: 9781784398767
海外代購書籍(需單獨結帳)
相關主題
商品描述
A fast-paced developer's guide to using Symfony2 to make your everyday web development work more efficient
About This Book
- Build web applications with the latest features of Symfony2
- Focus on common tasks such as creating CRUD, creating an API, and providing a login
- Install and configure Symfony2 and evaluate it for your everyday needs
Who This Book Is For
This book is aimed at experienced programmers, especially those familiar with a closely related technology such as Yii or Laravel, but who now want to learn Symfony quickly.
This book will also prove beneficial for experienced PHP developers who want to explore and evaluate new frameworks and their possibilities in day-to-day tasks.
What You Will Learn
- Familiarise yourself with the Symfony framework, its latest features, and how to install it
- Discover the concept of bundles and their application
- Handle translations within Symfony, enable translations, and learn how to handle database translations
- Understand Symfony's security model, how to secure applications, and implement a custom authentication provider by using FOSUserBundle
- Explore the use of Twig, find best practices around its usage, and discover its common pitfalls
- Create internal commands that will handle sending e-mail reminders for your app
- Develop a plugin for the profiler to provide custom information about your application
- Deploy applications based on Symfony2 using various methods including simple FTP copying, rsync, CI deployment, and more
In Detail
Symfony is a free and open source PHP MVC web application development framework, which helps you create and maintain web applications and replace recurrent coding tasks. It integrates with an independent library, PHPUnit, to give you a rich testing framework. It is one of the best and most popular frameworks available on the market. Popular projects such as Drupal, Laravel, and phpBB also use Symfony. Its well-organized structure, clean code, and good programming practices make web development a breeze.
Symfony2 Essentials will guide you through the process of creating a sample web application with Symfony2. You will create a To-Do application, using a few of the most commonly used Symfony2 components, and discover how to perform these development tasks efficiently.
This book introduces you to the Symfony framework with a quick installation guide and a brief explanation of its key features including the MVC architecture, twig templating, dependency injection, and more. You will learn to manage dependencies, create controllers, views, and API calls, and secure your application.
Next, you will go through the steps that are common for most web applications, which include writing CRUD and AJAX, handling forms, validation, translations, and the command-line interface, and e-mail sending features. The book ends with best practices, debugging, profiling, and deployment procedures.
By the end of this book, you will have learned how to combine a Symfony2 framework with other open source code to speed up the development process.
Style and approach
A fast-paced, step-by-step guide with examples on how to write the most common pieces of code while developing typical web applications with Symfony.
商品描述(中文翻譯)
**一本快速上手的開發者指南,使用 Symfony2 使日常網頁開發工作更有效率**
## 本書介紹
- 使用 Symfony2 的最新功能構建網頁應用程式
- 專注於常見任務,如創建 CRUD、建立 API 和提供登入功能
- 安裝和配置 Symfony2,並評估其是否符合日常需求
## 本書適合誰
本書針對有經驗的程式設計師,特別是那些熟悉 Yii 或 Laravel 等相關技術的人,但現在希望快速學習 Symfony。
本書對於希望探索和評估新框架及其在日常任務中可能性的經驗豐富的 PHP 開發者也將大有裨益。
## 你將學到什麼
- 熟悉 Symfony 框架及其最新功能,並學會如何安裝
- 探索 bundles 的概念及其應用
- 處理 Symfony 中的翻譯,啟用翻譯,並學習如何處理資料庫翻譯
- 理解 Symfony 的安全模型,如何保護應用程式,並使用 FOSUserBundle 實現自定義身份驗證提供者
- 探索 Twig 的使用,找到最佳實踐,並發現其常見陷阱
- 創建內部命令以處理應用程式的電子郵件提醒
- 開發一個用於分析器的插件,以提供有關應用程式的自定義資訊
- 使用各種方法(包括簡單的 FTP 複製、rsync、CI 部署等)部署基於 Symfony2 的應用程式
## 詳細內容
Symfony 是一個免費且開源的 PHP MVC 網頁應用程式開發框架,幫助你創建和維護網頁應用程式,並取代重複的編碼任務。它與獨立庫 PHPUnit 集成,提供豐富的測試框架。它是市場上最好的和最受歡迎的框架之一。流行的專案如 Drupal、Laravel 和 phpBB 也使用 Symfony。其結構良好、代碼乾淨和良好的編程實踐使網頁開發變得輕鬆。
《Symfony2 Essentials》將指導你通過使用 Symfony2 創建示範網頁應用程式的過程。你將創建一個待辦事項應用程式,使用幾個最常用的 Symfony2 組件,並發現如何高效地執行這些開發任務。
本書將快速介紹 Symfony 框架,提供安裝指南和其關鍵功能的簡要說明,包括 MVC 架構、Twig 模板、依賴注入等。你將學會管理依賴、創建控制器、視圖和 API 調用,並保護你的應用程式。
接下來,你將經歷大多數網頁應用程式的常見步驟,包括編寫 CRUD 和 AJAX、處理表單、驗證、翻譯、命令行介面和電子郵件發送功能。本書以最佳實踐、除錯、分析和部署程序作結。
在本書結束時,你將學會如何將 Symfony2 框架與其他開源代碼結合,以加快開發過程。
## 風格與方法
一本快速步驟指南,提供範例,教你如何在使用 Symfony 開發典型網頁應用程式時編寫最常見的代碼片段。