Consider Fluent Interfaces

Fluent interfaces often get a bad rap, but the truth is that there are countless scenarios where you may consider leveraging them. In this episode, we’ll review the basic definition and makeup for a fluent API, and will then move on discussing a handful of real-life examples in the wild.
Source: Laracasts

Laravel 5.3: Rollback one migration


A new feature has been added to Laravel 5.3 that will allow you to back out a single migration:

php artisan migrate:rollback --step=1

This is great for when you migrate and it runs through a batch but you want to back out just the last one instead the whole batch.

Source: Laravel News

Authentication With No Passwords?

In the last year, more and more applications have adopted password-less authentication. The general approach is fairly simple. When a user wishes to login, they provide their email address, an email with a unique login link is delivered, they click on it, and, boom, they’re in. Let’s learn how to do this in your next project.

View the source for this lesson on GitHub.
Source: Laracasts

LaraCart is built to be a easy, fast and simple solution for cart based systems with Laravel.


LaraCart was built to be a easy, fast and simple solution for cart based systems.

What makes LaraCart unique is it what it includes out of the box:

  • Coupons
  • Session Based System
  • Cross Device Support
  • Multiple cart instances
  • Fees such as a delivery fee
  • Taxation on a the item level
  • Endless item chaining for complex systems
  • Totals of all items within the item chains
  • Item Model Relation at a global and item level
  • Quickly insert items with your own item models

Laravel Angular Admin Starter Kit

Laravel Angular Admin

Laravel Angular Admin is an administration dashboard starter kit designed to give you a base to start working with. It uses Laravel, Angularjs, Bootstrap, and Gulp plus features Oauth and JWT authentication.

This could be a cool project to learn from or use a base on your next administration section.

Source: Laravel News

Useful String Additions

Nothing here will knock your socks off, but, nonetheless, it’s still important that you’re aware of the following new additions to the String API: startsWith(), endsWith(), includes(), and repeat().
Source: Laracasts

Zend Framework 3 Update for 2016-06-02

This is an installment in an ongoing series of posts on ZF3 development status. Since the last status update:

  • ~130 pull requests merged, and ~100 issues closed.
  • Over 30 component releases.
  • Completion of the component documentation migration.
  • Tagging of zend-mvc 3.0.
  • Completion of the new skeleton application and related installers.


Since the last update, we managed to complete the migration of documentation to components, as well as publish documentation for all components!

You can view a list of all documented components via GitHub Pages:

Each component contains a link in the topnav to scroll in the component list, allowing you to navigate to other components.

Please help us thank Frank Brückner for the enormous amount of assistance he provided driving this milestone to completion!

zend-mvc 3.0 stability

After copious testing with the skeleton application (more on that below), and prepping components such as zend-test to work with it, we decided that zend-mvc was ready to tag with a 3.0 stable version!

For those not following previous updates, the main goals of the zend-mvc v3 effort were:

  • De-couple from other components. Many components were listed as development requirements and suggestions due to the fact that zend-mvc contained zend-servicemanager integrations for them. We have moved those integrations into the components themselves.
  • Reduce dependencies to exactly what’s needed for a basic zend-mvc application:
    • EventManager
    • HTTP
    • ModuleManager
    • Router
    • ServiceManager
    • Standard Library
    • View
  • Split optional integrations into their own packages. These included:
    • Console integration (now provided via zend-mvc-console)
    • i18n integration (now provided via zend-mvc-i18n)
    • Several plugins had requirements on additional libraries, including:
      • PRG (uses zend-session)
      • FilePRG (uses zend-form and zend-session)
      • FlashMessenger (uses zend-session)
      • Identity (uses zend-authentication)

During the process, we were able to remove around 75% of the code, making the component much smaller, more maintainable, and more focused.

Once zend-mvc was tagged 3.0, we quickly followed up with a zend-test 3.0 release, and stable releases of zend-mvc-console, zend-mvc-i18n, and the various zend-mvc-plugin packages.

Skeleton application

We’d begun refactoring the skeleton application previously, and were able to complete the work in the past couple weeks. The new skeleton:

  • Migrates to PSR-4 directory layout for the shipped Application module.
  • Relies on Composer for all autoloading, including the Application module.
  • Removes all translations. These were of dubious use, and were quite difficult to maintain.
  • Depends only on zend-mvc, zend-component-installer (which automates injecting components and modules into application configuration during installation), and zend-skeleton-installer (more on this below).
  • We removed almost 8000 lines of code, adding only 800!

zend-skeleton-installer is a new Composer plugin that prompts the user during installation to:

  • Decide if they want a minimal install, or want to add optional packages.
  • Prompts for a number of common optional packages, including caching, logging, console integration, i18n, etc.
  • When installation is complete, it removes itself from the project!

Matthew plans to blog on the code behind zend-skeleton-installer in the near future.

You can test out the new skeleton using the following:

$ composer create-project "zendframework/skeleton-application:dev-develop" zend-project

The above will use the new develop branch, and create a project in the directory zend-project.

Finally, we added both an updated Vagrantfile and Docker support to the skeleton, allowing you to start developing in a consistent, de-coupled environment immediately.

For Vagrant, after you’ve installed, execute:

$ vagrant up

For Docker, you will need to use docker-compose; once you have that available, execute:

$ docker-compose up -d --build

With each, we bind your host port 8080 to the container’s port 80, allowing you to visit it at http://localhost:8080/

We’re excited about the new skeleton, and look forward to getting your feedback on it!

Final milestones

We have a few last milestones before we’re ready to announce the completion of the Zend Framework 3 initiatives.

First, because PHP 5.5 support ends at the end of June, we will be releasing a new minor version of all components setting the minimum supported PHP version to 5.6. (Many already have such versions in place.)

Second, now that the skeleton application is ready, we will be migrating our tutorials to a new repository, converting them to Markdown and MkDocs, and updating them to follow the new skeleton and component changes.

Finally, we will be deciding what the zendframework/zendframework package will look like for a version 3 tag. In large part, it becomes unnecessary, as we can ship even the skeleton with a minimal set of components; however, for those who want "everything at once", keeping it around as a metapackage may have value. We’ll be announcing the plans for it soon.

Until next time

If you want to help:

  • Test the new skeleton (see the directions above) and provide feedback.
  • Search for help wanted or EasyFix issues (most of the latter are documentation).

Many thanks to all the contributors who have provided feedback, patches, reviews, or releases since the last update!

Source: Zend feed

1 2 3 4