Getting Started with Laravel 4

Ideal for web developers who want a crash course in Laravel, this tutorial covers all the fundamentals to help you build robust applications with less code. The approach is practical with masses of real-world examples.

Getting Started with Laravel 4

Starting
Raphaël Saunier

1 customer reviews
Ideal for web developers who want a crash course in Laravel, this tutorial covers all the fundamentals to help you build robust applications with less code. The approach is practical with masses of real-world examples.
$20.99
$34.99
RRP $20.99
RRP $34.99
eBook
Print + eBook
$29.99 p/month

Find out more

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781783287031
Paperback128 pages

Book Description

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.

Table of Contents

Chapter 1: Meeting Laravel
The need for frameworks
A new approach to developing PHP applications
Laravel's main features and sources of inspiration
Structure of a Laravel application
Summary
Chapter 2: Composer All Over
Working with the command line
How does Composer work?
Installation
Creating a new Laravel application
Finding and installing new packages
Additional advice
Summary
Chapter 3: Your First Application
Sketching out the application
Starting the application
Writing the first routes
Preparing the database
Mastering Blade
Back to the routes
Summary
Chapter 4: Authentication and Security
Authenticating users
Securing your application
Summary
Chapter 5: Testing – It's Easier Than You Think
The benefits of testing
The anatomy of a test
Unit testing with PHPUnit
End-to-end testing
Summary
Chapter 6: A Command-line Companion Called Artisan
Keeping up with the latest changes
Inspecting and interacting with your application
Installing third-party commands
Rolling out your own artisan commands
Summary
Chapter 7: Architecting Ambitious Applications
Moving from simple routing to powerful controllers
Supercharging your models
Environment configuration made easy
Bringing in your own classes
Playing nice with the frontend
Summary

What You Will Learn

  • 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

Authors

Table of Contents

Chapter 1: Meeting Laravel
The need for frameworks
A new approach to developing PHP applications
Laravel's main features and sources of inspiration
Structure of a Laravel application
Summary
Chapter 2: Composer All Over
Working with the command line
How does Composer work?
Installation
Creating a new Laravel application
Finding and installing new packages
Additional advice
Summary
Chapter 3: Your First Application
Sketching out the application
Starting the application
Writing the first routes
Preparing the database
Mastering Blade
Back to the routes
Summary
Chapter 4: Authentication and Security
Authenticating users
Securing your application
Summary
Chapter 5: Testing – It's Easier Than You Think
The benefits of testing
The anatomy of a test
Unit testing with PHPUnit
End-to-end testing
Summary
Chapter 6: A Command-line Companion Called Artisan
Keeping up with the latest changes
Inspecting and interacting with your application
Installing third-party commands
Rolling out your own artisan commands
Summary
Chapter 7: Architecting Ambitious Applications
Moving from simple routing to powerful controllers
Supercharging your models
Environment configuration made easy
Bringing in your own classes
Playing nice with the frontend
Summary

Book Details

ISBN 139781783287031
Paperback128 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Object-Oriented Programming with PHP5
$ 23.99
Learning Laravel 4 Application Development
$ 29.99
Building Websites with PHP-Nuke
$ 20.99
Mastering PHP Design Patterns
$ 39.99