News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Alan Storm:
Laravel 5 Autoloader
February 24, 2015 @ 11:51:15

Alan Storm has a new post to his site that takes an in-depth look at Laravel's autoloader and how things have changed with the release of Laravel 5.

Last time we finished up our look at Laravel 4.2's autoloader implementation. Like a lot of features in Laravel, (or any framework), once you pull out the microscope sharp edges begin to jut out everywhere. However, unlike many other framework teams, the Laravel core team is willing to make shifts in their platform and application architecture. If you're familiar with the internals of Laravel 4, looking at the internals of Laravel 3 may be a little disorienting. Similarly, the recent release of Laravel 5 presents some new wrinkles at the system level.

In the post he compares some of the differences based off of things found in a previous look at Laravel 4.2's autoloading system. He lists out the autoloaders initialized during the autoloader phase, four of them, including the use of the PhpParser library and Composer-only autoloading. He also includes a section at the end about some other smaller autoloading changes in the Composer configuration in both the "autoload" and "autoload-dev" sections.

0 comments voice your opinion now!
laravel autoloader laravel4 laravel5 indepth composer phpparser swift

Link: http://alanstorm.com/laravel_5_autoloader

Barry vd. Heuvel:
CSRF Protection in Laravel explained
February 23, 2015 @ 11:52:59

Barry vd. Heuvel has a recent post to his site explaining how the Laravel framework has implemented CSRF protection natively. CSRF is short for Cross-site request forgery and is a type of security vulnerability.

In this blog we take a closer look into CSRF protection in Laravel. We compare the difference between the CSRF filter in Laravel 4 and the current VerifyCsrfToken middleware in Laravel 5.

He start with a quick look at why CSRF protection is even needed and what kind of problems it can cause. He shows how the CSRF protection was enabled in the Laravel 4 routing and how, in Laravel 5, the token evaluation was updated to use the hash_equals to prevent timing attacks. He then gets into the details of the middleware and how it handles the protection for you (including detection and use of the X-CSRF-TOKEN header).

0 comments voice your opinion now!
csrf protection laravel laravel5 middleware xcsrftoken header

Link: http://barryvdh.nl/laravel/2015/02/21/csrf-protection-in-laravel-explained/

The ChangeLog Podcast:
#142 Laravel PHP Framework with Taylor Otwell
February 17, 2015 @ 10:14:23

The ChangeLog podcast has posted their latest episode, #142, with guest Taylor Otwell, creator of the popular Laravel framework.

This week we're joined by Taylor Otwell, he's the creator and maker of the Laravel PHP framework. He joins us for a deep dive into Laravel, why he doesn't release without good documentation, building apps to test your own framework, writing an API for Lavarel Forge, and more.

There's a good range of topics discussed, both Laravel and non-Laravel with links included in the post. You can listen to this latest episode either through the in-page audio player or by downloading the mp3.

0 comments voice your opinion now!
thechangelog podcast laravel framework taylorotwell ep142

Link: http://thechangelog.com/142/

Servers for Hackers:
Deployment with Envoy
February 11, 2015 @ 13:09:31

The Servers for Hackers site has a new post walking you through the steps to deploy a PHP application with Envoy, the Laravel-based ssh task runner to make automated deployment simpler.

We'll use Laravel's Envoy to deploy a PHP application to a production server. This will make a new release directory, clone the repository into it, run any needed build steps, and then finally swap the new code out with the older code, so that Nginx and PHP-FPM serve the new code.

They walk you through the full setup you'll need to get the deployment working including generating ssh keys, installing Envoy globally and making the first Envoy configuration file. With that in place and working, he enhances it with quite a few more steps including checking out a new version of the repository to a "release" directory, executing Composer to pull in needed libraries and changing the symlink to point the document root and the freshly installed version. He also includes the configuration for the Nginx server to set up a Laravel-based application inside of a Vagrant VM instance.

0 comments voice your opinion now!
envoy deployment laravel tutorial nginx configuration automation

Link: https://serversforhackers.com/deploy-envoy/

Laravel News:
Debug Your App with the Laravel Debugbar
February 10, 2015 @ 09:34:12

The Laravel News site has a post introducing a tool you can use in your Laravel applications to help debug issues and performance, the Laravel Debug Bar.

The Laravel Debugbar by Barry vd. Heuvel is a package that allows you to quickly and easily keep tabs on your application during development. With a simple installation and powerful features the Debugbar package is one of the cornerstone packages for Laravel. The debugbar is already updated for Laravel 5 and I wanted to show you all the great features it includes.

The post includes instructions to get the debugbar installed (via Composer) and add it to your Laravel providers list. They walk through the basics of its features and screenshots of each. He also links you to the project documentation to provide more detail on each of the features.

0 comments voice your opinion now!
laravel debug debugbar toolbar library provider tutorial introduction

Link: https://laravel-news.com/2015/02/laravel-debugbar/

Laravel News:
New community project Laravel Collective
February 09, 2015 @ 11:56:47

A new project has been launched in the Laravel community to try to maintain some of the core Laravel components that have been deprecated by the framework - the Laravel Collective.

The Laravel Collective is a new Laravel community organization headed by Adam Engebretson and Tom Shafer. It's primary goal is to help maintain the core Laravel components that have been deprecated by the framework. Currently the packages the Collective is taking over is HTML/Form and Annotations. They have a new site in the works which, when launched, will have complete documentation, team information, and more information on the packages. Until it's launched you can check out their GitHub repository.

The full project hasn't launched yet, but if you're interested in becoming a part of it, you can sign up for their newsletter and get updates as they're posted.

0 comments voice your opinion now!
laravel collective deprecated package maintain

Link: http://laravelcollective.com

Laravel News:
Learn Laravel 5 with Easy Laravel
February 06, 2015 @ 11:19:38

The Laravel News site has a new post today about a book (from Jason Gilmore) wanting to help you learn everything you need to know about Laravel 5 - Easy Laravel 5.

Easy Laravel is a new book by W. Jason Gilmore, focusing entirely on the brand new Laravel 5. Easy Laravel features 8 chapters and over 200 pages to help you learn Laravel 5 quickly by building a real world project. Jason has spent the last 15 years using PHP, during this time he's written seven PHP books. Including the bestseller, "Beginning PHP and MySQL, Fourth Edition", that has been in print more than 10 years. He has a gift of explaining things clearly in a very nice style.

The post also includes some Q&A with Jason asking about why he chose to write a book on Laravel, what was the most enjoyable part of the process and what his favorite new feature is. The remainder of the post walks you through the chapters of the book and introduces you to some of the content with a brief summary of each.

0 comments voice your opinion now!
laravelnews laravel easy book learn wjasongilmore interview

Link: https://laravel-news.com/2015/02/learn-laravel-5-easy-laravel/

Community News:
Laravel 5 Released
February 04, 2015 @ 11:16:24

According to this new post on the Laravel News site the latest major version of the Laravel framework has been released - Laravel 5.

Several new features come in this release including:

  • A new, more granular directory structure
  • Changes to the Blade templating library
  • The introduction of Contracts for core services
  • Commands & Events
  • Routing updates
  • Controller method injection

...and plenty more. You can find out about all of these new features (along with some code examples) in this release announcement on the Laravel News site.

0 comments voice your opinion now!
laravel framework laravel5 release version announcement

Link: https://laravel-news.com/2015/01/laravel-5/

Laravel News:
Easy Image Processing in Laravel with Glide
January 30, 2015 @ 10:06:41

On the Laravel News site there's a new post sharing a video tutorial of how to use the Glide image handling library with your Laravel-based application.

Glide is a new package by Jonathan Reinink which is an on-demand image manipulation library. In this video he shows you how to set it up and the basic usage in Laravel 5.

In the tutorial Jonathan walks you through an introduction to the library and how it wraps around the Intervention image handling. He creates a basic application that, when an image endpoint is called, output the image with any given configuration options (like height and width). Glide is one of many packages making up The PHP League.

0 comments voice your opinion now!
laravel image processing glide library thephpleague screencast video

Link: https://laravel-news.com/2015/01/using-glide-laravel/

Matt Stauffer:
Extending Laravel's Application
January 27, 2015 @ 10:48:37

Matt Stauffer has a new post to his site today showing you how to extend Laravel's Application class to enhance its handling with other handy features.

It's seldom that we need to extend Laravel's core, and even when we do, it's most likely we're going to extend specific components, which is detailed in the docs. However, all of these instructions presume you're using the core Laravel Application (IOC Container) to extend the other classes. What if you want to extend the Application itself?

The example he provides is from his own real-world experience, based around changes they wanted to make in the default folder paths for things like the "storage" or "public" directories. He shares the three simple steps to making this custom handling work:

  • Extend the class
  • Register it in your application's bootstrap
  • Override/extend the current methods to add in your own functionality

In this case, changing the default paths is something that's under discussion already, but it gives a good simple example of changing that default functionality.

0 comments voice your opinion now!
extend laravel application class override register tutorial

Link: http://mattstauffer.co/blog/extending-laravels-application


Community Events

Don't see your event here?
Let us know!


interview introduction laravel threedevsandamaybe language library podcast unittest release symfony laravel5 voicesoftheelephpant api framework security version series extension opinion community

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework