Leanpub Header

Skip to main content

Easy development with Symfony (2 and 3)

Learn how to develop with Symfony and other tools that will help and will make your work easier in a big way as developer

In this book I explain you how to enter into the Symfony world quickly and using other tools that surround the web development environment which will improve your developer abilities in a big way. During my last 5 years I've been developing websites using this framework. I will show you all the tricks I learnt to speed up your web projects.

Free With Membership
This book is a translation into English of Desarrollo fácil con Symfony (2 y 3) which was originally written in Spanish

With Membership

Free!

$17.99

You pay

$17.99

Author earns

$7.19

Cause gets

$7.20
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
WEB
775
Readers
159
Pages
About

About

About the Book

This is a free book with the goal of making you a better developer. If you consider it interesting or if after reading it you think that it's a good book and you want to pay for it, you should know that the 50% of your gratefulnes will be destinated for a good cause.

Share this book

Categories

Installments completed

18 / 18

This book is a translation into English of Desarrollo fácil con Symfony (2 y 3) which was originally written in Spanish

Author

About the Author

Jon Torrado

DevOps at @LIN3S · I love learning and teaching, sometimes I write · @GamersWalk_ CTO · @phpeus member

Translations

Translations

Languages

Contents

Table of Contents

Introduction

  1. Why I’m writing this book
  2. What you are going to learn
  3. Whom is this book for
  4. How the book is divided

Chapter 1: installation and configuration

  1. Symfony installer
  2. Composer
  3. MySQL Database
  4. Writing Permissions
  5. The Web Server
  6. Development environment
  7. Tip 1
  8. Summary

Chapter 2: third party bundles

  1. Looking for our bundle
  2. Installing a new bundle
  3. Tip 2
  4. Summary

Chapter 3: Admin Bundle

  1. Installing the Admin Bundle
  2. Creating our Admin Class
  3. Tip 3
  4. Other possibilities
  5. Summary

Chapter 4: User Bundle

  1. Installing the User Bundle
  2. Creating the user structure
  3. Creating our admin user
  4. Tip 4
  5. Summary

Chapter 5: MopaBootstrap

  1. Installing MopaBootstrapBundle
  2. Preparing the base template
  3. Tip 5
  4. Summary

Chapter 6: Gulp (1)

  1. Installation
  2. Creating our first SCSS file
  3. Minifying our CSS
  4. Autoprefixer
  5. Gulp watch
  6. Default task
  7. Tip 6
  8. Summary

Chapter 7: Assetic for JavaScript

  1. Installation
  2. Configuration
  3. Minifying our JavaScript
  4. Recommendations
  5. Tip 7
  6. Summary

Chapter 8: full example

  1. Application flow
  2. Creating the route
  3. Creating the action method
  4. Our own home
  5. The image carousel
  6. The claims
  7. Contact form
  8. Sending an email
  9. Tip 8
  10. Summary

Chapter 9: Doctrine Extensions

  1. Installation
  2. Timestampable filter
  3. Slugabble filter
  4. Softdeleteable filter
  5. Other filters
  6. Tip 9
  7. Summary

Chapter 10: LiipImagineBundle

  1. Installation
  2. Configuration
  3. Using with Twig
  4. Using with PHP
  5. Tip 10
  6. Summary

Chapter 11: ther bundles

  1. EWZRecaptchaBundle
  2. AcceleratorCacheBundle
  3. FOSRestBundle
  4. NelmioApiDocBundle
  5. DoctrineFixturesBundle
  6. DoctrineMigrationsBundle
  7. FOSJSRoutingBundle
  8. HWIOAuthBundle
  9. KnpSnappyBundle
  10. JMSTranslationBundle
  11. Tip 11
  12. Summary

Chapter 12: Gulp (2)

  1. Sass Lint
  2. JSCS
  3. PHP CS
  4. PHP CBF
  5. Executing PHP commands
  6. Tip 12
  7. Summary

Chapter 13: additional Symfony configuration

  1. ParamConverter
  2. Template without controller
  3. Redirecting without controller
  4. Dump autoload
  5. Hide logs
  6. Send 500 errors to an email
  7. PhpStorm configuration
  8. Moving the sessions folder
  9. Tip 13
  10. Summary

Chapter 14: modifying SonataUserBundle

  1. Modifying FOSUserBundle
  2. Overriding the templates
  3. Overriding the controllers
  4. Modifying the login and the sign in
  5. Modifying the sign in (2) and the emails
  6. Other modifications
  7. Tip 14
  8. Summary

Chapter 15: deployment

  1. Magallanes
  2. Ansible
  3. Capifony
  4. Capistrano
  5. Deploying with capistrano-symfony
  6. Capistrano-symfony: final result
  7. Tip 15
  8. Summary

Chapter 16: testing

  1. What is testing? Do I need it?
  2. TDD vs BDD
  3. Testing tools in PHP
  4. Continuous integration
  5. Tip 16
  6. Summary

Epilogue

  1. Bower
  2. Gassetic
  3. Gulp with JavaScript
  4. PostCSS
  5. Symfony made developments
  6. DDD
  7. Did you like the book?
  8. Thanks to readers

Contributor

About the Contributors

Beñat Espiña

Web developer @LIN3S • PHP, CSS & JS • Obsessed with BDD & clean code • Exploring DDD & BEM

Causes

Causes Supported

Watsi
Watsi is a global crowdfunding platform for healthcare that enables anyone to donate as little as $5 to directly fund life-changing medical care for people in need. 100% of every donation funds medical care and we are dedicated to complete transparency.
Watsi (watsi.org) is the first global crowdfunding platform for healthcare, enabling anyone to directly fund low-cost, high-impact medical care for people in need. 100% of every donation on Watsi’s platform directly funds medical care for patients, the organization does not take a cut for its operations. Since launching in August of 2012, Watsi has funded medical care for more than 700 people in 16 countries.

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