Symfony2 Essentials
暫譯: Symfony2 基礎精要
Wojciech Bancer
- 出版商: Packt Publishing
- 出版日期: 2015-09-08
- 售價: $1,470
- 貴賓價: 9.5 折 $1,397
- 語言: 英文
- 頁數: 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 組件,並發現如何高效地執行這些開發任務。
本書將通過快速安裝指南和對其關鍵功能的簡要說明(包括 MVC 架構、Twig 模板、依賴注入等)介紹 Symfony 框架。您將學會管理依賴、創建控制器、視圖和 API 調用,並保護您的應用程式。
接下來,您將經歷大多數網頁應用程式的常見步驟,包括編寫 CRUD 和 AJAX、處理表單、驗證、翻譯、命令行介面和電子郵件發送功能。本書以最佳實踐、除錯、分析和部署程序作結。
在本書結束時,您將學會如何將 Symfony2 框架與其他開源代碼結合,以加快開發過程。
風格與方法
這是一本快速上手的逐步指南,提供了如何在使用 Symfony 開發典型網頁應用程式時編寫最常見代碼片段的範例。