万本电子书0元读

万本电子书0元读

顶部广告

Symfony2 Essentials电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Wojciech Bancer

出  版  社:Packt Publishing

出版时间:2015-09-08

字       数:60.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
A fast-paced developer's guide to using Symfony2 to make your everyday web development work more efficient Key Features 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 Essentials

Table of Contents

Symfony2 Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. The Symfony Framework – Installation and Configuration

Key reasons to choose Symfony2

The history of Symfony

Installation

Installing Symfony2 using an installer

The Symfony2 directory structure

What is a bundle?

Composer

The configuration files

The Symfony2 console

Summary

2. Your First Pages

Everything is a bundle

The configuration format

Cleanups

Recreating AppBundle

Routing

Templates – the View layer

Entities – the Model layer

Migrations

Fixtures

Summary

3. Twig Templating and Assets Handling

The Twig templating engine

Assets management

Assetic

Handling third-party bundle assets

Handling your application assets

Creating a list of tasks

Summary

4. Forms

Form creation

Validation and form processing

Theming form elements

Transforming data

Summary

5. Security and Handling Users

Security handling

Installing the user manager bundle

User registration

Summary

6. Translation

Translations

Using translations in a controller

Translation file formats

Variables and pluralization

The translation strategy

Using translation keys

Database translations

Summary

7. AJAX

Installing and configuring REST features

FOSRestBundle

NelmioApiDocBundle

FOSJSRoutingBundle

Refactoring the existing code

Adding a new controller

Setting up routing and JavaScript

Summary

8. Command-line Operations

Creating the console command

Swiftmailer

Logging

Summary

9. Symfony2 Profiler and Debugger

The Web Debug Toolbar

The Symfony2 profiler

The profiler sections

VarDumper

The AJAX requests

Data collectors

The stopwatch component

Summary

10. Preparing an Application for Production

Preparing an application

Checking the code against debug code

Customizing error pages

Verifying the production server requirements

Security check

Updating the basic assets and metadata

Changing the web root directory

Deployment strategies

FTP

The rsync deployment

Continuous integrations

Deployment tools

Platform as a Service deployment

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部