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

Community News:
Laravel Framework Introduces Liferaft
September 12, 2014 @ 09:25:04

The development group behind the Laravel framework have introduced a new tool that aims to make it easier to report bugs with the framework (not the applications built with them): Laravel Liferaft.

To encourage active collaboration, Laravel currently only accepts pull requests, not bug reports. "Bug reports" may be sent in the form of a pull request containing a failing unit test. [...] A failing unit test or sandbox application provides the development team "proof" that the bug exists, and, after the development team addresses the bug, serves as a reliable indicator that the bug remains fixed.

Following along with this method, Liferaft provides a simple way to download a clean copy of the framework, make the needed changes for the pull request and automatically submit it via GitHub back to the project for handling. In this video on Laracasts Taylor Otwell walks you through a simple example of using it to submit an issue back (and what happens behind the scenes).

0 comments voice your opinion now!
liferaft laravel framework bugfix unittest pullrequest

Link: https://laracasts.com/lessons/introducing-laravel-liferaft

SitePoint PHP Blog:
Deploy Your Website Using Laravel and Git
September 08, 2014 @ 09:28:50

The SitePoint PHP blog has a new tutorial by James Dow showing you how to use git and Laravel for application deployment. This isn't just about deploying a Laravel application, though. It includes a method for automating processes once the deployment is complete.

You can't be a successful web developer without using some sort of deployment workflow for your websites. It doesn't matter how good or bad your workflow might be. If you can't get your website up to production then your client will never pay you for your hard work. [...] I wanted something that was as easy as pushing a repository with Git. More important, I wanted to be in full control when pushing content live. I was able to find a similar workflow that used Git to handle the file transferring. On top of that I found out I could also use the PHP framework Laravel to automate the more repetitive tasks.

He starts with the server side of things, showing you how to get the git repository created and structured. He then configures Laravel with a "remote" connection for the production server so it can reach out and execute the tasks. Finally he shows how to make the route (/deploy) that's executed when the route is called. In his example route he sets up a SSH request to the production server that changes to the web server root and makes a "git pull" request to get the latest code. It's an interesting use for something like Laravel, but I wonder if it's a good fit for the deployment need. This kind of thing could pretty easily be replaced with a small shell script.

0 comments voice your opinion now!
deployment laravel tutorial git ssh

Link: http://www.sitepoint.com/deploy-website-using-laravel-git/

SitePoint PHP Blog:
Single Page App with Laravel and EmberJS
September 01, 2014 @ 15:28:33

The SitePoint PHP blog has posted the fourth part in their "REST App with Laravel and EmberJS" series today. In this latest tutorial they focus in on the frontend and investigate how Ember works how to get started in your application.

In this part, we will see how Ember works, how to use Ember Data and how to build something simple with it. Router, Route, Model, Template and Store are some of the concepts of Ember. I'm not going to explain every one of those, so if you feel stuck, use the documentation.

They dive right into the code, getting a simple Ember "App" instance set up and configured. They add in a REST adapter to connect it to the backend API and lay out a few of the routes. They then create the models to represent the data and link each to a route. Next they get into views and creating the interface and frontend markup (using Handlebars templating). A gif is included showing the results and how things should look at this point.

0 comments voice your opinion now!
tutorial series emberjs part4 laravel rest api

Link: http://www.sitepoint.com/single-page-app-laravel-emberjs/

SitePoint PHP Blog:
Build a New App with Laravel and EmberJS in Vagrant
August 25, 2014 @ 11:31:58

The SitePoint PHP blog has kicked off another series of posts today with part one of a series looking at building an application based on the Laravel PHP framework and EmberJS.

Nowadays, everything is turning into a web application. Even simple websites have a mobile app relying on a REST Api. Web applications are accessible everywhere - on a laptop, desktop, tablet, mobile, and recently on wearable devices like smartwatches. Everything is becoming smaller and faster - front ends are becoming separated from back ends, and only communicate with the server through APIs. In this series, we are going to create a photo uploading app. For the front-end, we will use EmberJs and Foundation 5. [...] For the back-end, we will use Laravel. The source code will be available per-part, and in final shape in the final part of this series.

They go with the Laravel Homestead virtual machine (and Vagrant) to make for a quick setup and stable environment. They help you get it all set up to push up to Heroku and get all needed dependencies, both frontend and backend, installed. They also walk you through the setup of the database, configuring the connection and deploying the application to production.

0 comments voice your opinion now!
tutorial emberjs vagrant laravel homestead application series part1

Link: http://www.sitepoint.com/build-new-app-laravel-emberjs-vagrant/

NetTuts.com:
Five Hidden Gems of Laravel
August 22, 2014 @ 11:51:20

The NetTuts.com site has posted a list of their five hidden gems in Laravel, a popular PHP framework. They look at a wide range of these "hidden" features that can help make your Laravel experience even better.

Many developers who use Laravel are probably only barely scratching the surface of what the framework has to offer. While the documentation does cover the most common use cases and the obvious features, it doesn't cover everything. Don't get me wrong, the documentation is fine, it's just that there's so much you can do, it's hard to document everything. Because of that, we're going to take a look at some of the hidden gems that lurk within Laravel.

The five items on their list come complete with summaries about the feature, when they were added, if they're documented and a code sample with them in use:

  • Cascading Views
  • Collections (with sorting, filtering and pagination)
  • Regular Expression Filters
  • The Message Bag
  • Fluent
0 comments voice your opinion now!
hidden gems laravel framework views collections regex filter message fluent

Link: http://code.tutsplus.com/articles/five-hidden-gems-of-laravel--cms-21907

SitePoint PHP Blog:
IronMQ and Laravel Delays and Retries
August 15, 2014 @ 11:07:14

The SitePoint PHP blog has posted the second part of their IronMQ and Laravel series, part 3: IronMQ and Laravel: Delays and Retries. In this latest post Rajiv Seelam looks at how to get the Laravel-based application to overcome some of the limitations of the system.

Previously, we saw how to use Iron push queues with Laravel. All we needed to do was set up an Iron account, add a subscriber URL, push a message to queue, and receive the message. The way Laravel supports Iron push queues out-of-the-box is amazing, but there are always limitations. In this article we focus on those limitations and learn to tackle them.

He briefly talks about the three different scenarios: the happy path where everything works, the job fails and the job being a long running process. He then walks you through code that covers each of these scenarios using subscribers and the IronMQ PHP library for successful handling. He shows the push of a message then how to handle delays and retries, defining them in the job configuration.

0 comments voice your opinion now!
ironmq tutorial series delay retry laravel

Link: http://www.sitepoint.com/ironmq-laravel-delays-retries/

SitePoint PHP Blog:
Data Validation in Laravel - Introduction & Custom Validators
August 12, 2014 @ 13:59:16

The SitePoint PHP blog has posted the first two parts of a new series looking at how to do data validation in Laravel, a popular PHP framework. Laravel comes with a set of included validators that can easily be used to check incoming data. This article series introduces them and the features they can provide.

If an app was a world then data would be its currency. Every app, no matter what its purpose, deals in data. And almost every type of app works with user input, which means it expects some data from users and acts on it accordingly. But that data needs to be validated to make sure it is of correct type and a user (with nefarious intent) is not trying to break or crack into your app. Which, if you are making an application which requires user input, is why you would need to write code to validate that data as well before you do anything with it.

In the first part of the series they start with an example of doing validation the "old way". They reproduce this same validation using the Laravel validators and show how to introduce it as a service to the overall application. Their "RocketCandy" validation service can then handle the same validations and make for a cleaner interface in the calling script. It's refactored even more to include exceptions when the validation fails and the HTML for outputting the error messages thrown. Unit tests are also included to ensure things are working as they should.

In the second part of the series they build on the examples from part one and introduce custom validators. An example of validation around dashes, spaces and alphanumeric data is included (using regular expressions) and how they can be defined as custom validation rules.

0 comments voice your opinion now!
data validation laravel introduction custom validator framework

Link: http://www.sitepoint.com/series/data-validation-in-laravel-the-right-way/

NetTuts.com:
Setting Up User Authentication in Laravel Using Confide
August 08, 2014 @ 11:05:24

NetTuts.com has posted a new tutorial recently showing how you can use Confide to set up authentication in a Laravel-based PHP application. Confide is a package specifically for Laravel that provides a lot of the usual needs for a user authentication system.

User authentication is part of almost every web application. Although it is common, a deeper look shows that it's not as simple as it may seem. Remember that validation, password recovery, and email confirmation are vital to any decent authentication form. Confide is an authentication solution for Laravel made to reduce the repetitive work involving the management of users. [...] In this tutorial, we'll start from the very beginning by creating our Laravel app using Composer and then: create a signup form with a full set of validation rules, a login form with a "forgot my password" option that will send a link for the user to redefine his password and use Laravel filters to only allow logged users can access a specific route.

The tutorial walks you through creating a simple Laravel application (obviously you can always use one you've already created) and getting Confide installed via Composer. Once you've added the provided lines to the Laravel configuration, you'll be ready to follow along with their examples. They run the migrations to set up the database and show how to view the user pages (and update their look to something a bit more friendly). The remainder of the post shows how to add in the pre-execute validation, via Laravel's filters, to ensure a user is logged in on certain routes.

0 comments voice your opinion now!
tutorial authentication laravel confide library

Link: http://code.tutsplus.com/tutorials/setting-up-user-authentication-in-laravel-using-confide--cms-21866

Three Devs & A Maybe Podcast:
Laravel, Forge and Homestead with Taylor Otwell
July 10, 2014 @ 10:42:44

The Three Devs & A Maybe podcast has posted a new episode with special guest Taylor Otwell of Laravel framework fame. In this latest episode (#33) they talk with him about the framework, the Forge product and the Homestead project (a packaged VM environment ready to host Laravel applications).

This week we are very lucky to have the creator of Laravel, Taylor Otwell on the show. Starting off with his journey into the world of programming (through .NET), we move on to discuss how Laravel came to being. We then touch upon our experiences experimenting with different programming stacks, and what features of C# he would like to see introduced into PHP. Finally, we ask Taylor what resources he would recommend to someone just starting out in the industry.

Other topics mentioned in this episode include the Laracasts website, FuelPHP and PhoneGap. You can listen to this latest episode either through the in-page player or by downloading the mp3 directly. You should also consider subscribing to their feed to get the latest shows as they're released.

0 comments voice your opinion now!
threedevsandamaybe podcast ep33 taylorotwell laravel forge homestead

Link: http://threedevsandamaybe.com/posts/laravel-forge-and-homestead-with-taylor-otwell/

SitePoint PHP Blog:
13 Steps to Get eZ Publish 5.x to Work on Homestead
July 04, 2014 @ 12:28:30

The SitePoint PHP blog has a new tutorial posted today showing how to get eZ Publish 5.x to Work on Laravel Homestead, a virtual machine environment from the creators of the Laravel framework.

This article was initially going to be a quick tip on how to install eZ Publish on Homestead in just a few steps. However, after I saw how much effort it took to get it up and working from scratch on a Vagrant box hosted on Windows, I decided to make it into a full article. I suffered, so you don't have to.

He starts with a bit of an aside about "Vagrant-friendly applications and encourages developers to try to adopt a Vagrant-first approach to getting their systems working across multiple environments. From there he gets into the main part of the tutorial, showing you how to:

  • Install "Homestead Improved"
  • Set up and configure a new site
  • Install dependencies and the latest version of eZ Publish
  • Fix a few issues on installation and "hack the guts" to make some things
  • Change some configuration settings to make the install work correctly
  • Go through the installer to set up the application (and database)
  • Change the web server configuration to remove the need for "index.php"

Screenshots and commands/code needed to make the updates are all included in the post.

0 comments voice your opinion now!
ezpublish laravel homestead tutorial configure install

Link: http://www.sitepoint.com/13-steps-get-ez-publish-5-x-homestead/


Community Events





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


release bugfix zendserver community language voicesoftheelephpant deployment laravel threedevsandamaybe tips code symfony api podcast introduction conference series framework list interview

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