Month: June 2016

Let’s learn about a new construct: arrays. Think of them as primitive collections of related data. Maybe you have an array of names, or animals, or practically anything. Even better, we can filter through this data and act upon it with ease.

Step 6 Homework: Create an array of any five animals, and then loop over them with foreach, and display each one within a list item.
Source: Laracasts

We’ll touch on a slightly higher level topic in this episode, but only lightly. If you stick with it long enough, you’ll begin to hear the phrase "separation of concerns." At our current skill level, this means we should give consideration to the fact that, at the moment, our PHP logic and HTML presentation are a bit too intertwined. Perhaps we can separate these concerns.

Step 5 Homework: Play around with creating a new file, preparing a few variables, and then loading a separate "view" file to present the HTML.
Source: Laracasts

PHP is a language built for the web. As such, it mixes with regular HTML beautifully. Let’s learn how that all works in this episode. You’ll review embedding PHP in HTML, calling your first function, and fetching URL parameters.

Step 4 Homework: Echo a sentence onto the page, while fetching a URL parameters from the address bar.
Source: Laracasts

Before we get started, let’s ensure that you have a proper code editor installed on your machine. As you’ll find, code editors are much like fashion: everyone has their own preference. It doesn’t matter which you choose, so pick one!

Step 2 Homework: Install a proper code editor on your machine right now. It could be Sublime Text, Atom, PHPStorm, or a different one entirely.
Source: Laracasts

The very first #helpMeLaracasts question in this series comes from Mohammad, via email. He’d like to know how to restrict access to his website on the server level, using Nginx. Maybe his code has been pushed to production, but he’s not quite ready to let the public see it. Okay, let’s figure out what to do!
Source: Laracasts

After 17 months of effort, hundreds of releases, tens of thousands of commits by
hundreds of contributors, and millions of installs, we’re pleased to
announce the immediate availability of Zend Framework 3.

What is Zend Framework 3?

For Zend Framework 2 MVC users, the differences are subtle:

Increased performance; we’ve measured up to 4X faster applications under PHP
5, and even better performance under PHP 7!

PHP 7 support.

A focus on de-coupling packages, to allow re-use in a greater number of
contexts. In some cases, this has meant the creation of new packages that
either split concerns, or provide integration between multiple components.

A focus on documentation. Documentation is now included within each component
repository, allowing us to block contributions for lack of documentation, as
well as automate deployment of documentation. See our newdocumentation site for the results.

Migration from version 2 to version 3 was at the top of our minds, and we have
provided a number of forwards compatibility features over the course of ZF3
development, and written migration guides
to help you navigate the changes.

If you are already familiar with our MVC, or want to get started with it, we
have created a new version of the skeleton application
that ships with minimal dependencies, and provides a number of convenience
features including the ability to select optional packages at installation, as
well as auto-register components and modules when adding them to your
application. Read more about the skeleton in the documentation.

For newcomers to the framework, we have been working on our package
architecture, and attempting to make each package installable with a minimal
amount of dependencies, to allow usage in any project, from Zend Framework MVC
applications to other popular frameworks such as Laravel and Symfony. All
components are now developed independently, with their own release schedules,
allowing us to ship bugfixes and new features more frequently. This change has
allowed us to tag multiple hundreds of releases in the past year!

The Zend Framework 3 initiatives also included a number of new features,
primarily around PSR-7 (HTTP Message
interfaces) support. These include:

Diactoros, the original and
leading PSR-7 implementation in the PHP ecosystem.

Yes, you read that correctly: Zend Framework now ships with a microframework as
a parallel offering to its MVC full-stack framework! For users new to Zend
Framework who are looking for a place to dive in, we recommend Expressive, as we
feel PSR-7 middleware represents the future of PHP application development.

The release today is a new beginning for the framework, returning to its
original mission: a strong component library, with opt-in MVC features.

With the release of Zend Framework 3, it’s time to halt development on Zend
Framework 1. As such, we hereby announce that Zend Framework 1 reaches its End
of Life (EOL) three months from today, on 28 September 2016.

Between now and then, we will only provide security fixes, if any security
reports are made in that time frame. Past that point, we will offer custom bug
and security fixes for Zend Framework 1 on-demand only toEnterprise users of Zend Server.

Additionally, as of today, access to our legacy subversion server is disabled.
If you were using svn:externals to incorporate Zend Framework into your
application, please download the relevant package as listed in ourZend Framework packages archives instead, or update your
application to use Composer.