VideoJS Setup

Now that you understand the basics of HTML5 video, let’s switch our attention over to VideoJS, which is a popular open source framework for presenting videos.
Source: Laracasts

Laravel and Elasticsearch

laravel-elasticsearch

Elasticsearch allows you to search & analyze data in real time. Even though it’s extremely powerful working with delta’s and querying data is not that simple.

If you are using Laravel here is a list of packages and tutorials to help you easily integrate this into your app.

Laravel Elasticsearch Packages

Below are three packages that you can install via Composer and instantly add to any existing app:

Plastic

Plastic is an Elasticsearch ODM and mapper for Laravel. It renders the developer experience more enjoyable while using Elasticsearch, by providing a fluent syntax for mapping, querying, and storing eloquent models.

Elasticsearch Eloquent

This package allows you to interact with Elasticsearch as you interact with Eloquent models in Laravel.

elasticsearcher

A lightweight package built on top of the Elasticsearch PHP client. Its main goal is to allow for easy structuring of queries and indices in your application.

Elasticquent

Elasticquent makes working with Elasticsearch and Eloquent models easier by mapping them to Elasticsearch types. You can use the default settings or define how Elasticsearch should index and search your Eloquent models right in the model.

Spatie Searchindex

This is an opinionated Laravel 5.1 package to store and retrieve objects from a search index. Currently, Elasticsearch and Algolia are supported.

Laravel Elasticsearch Tutorials

Want to learn more about Elasticsearch? The following are great tutorials to get you started:

Install Elasticsearch on Laravel Homestead

If you are going to use Elasticsearch it’s a good idea to be able to test it locally. Mirza Pasic put together this guide to help you set it up on Homestead.

Integrating Elasticsearch with Your Laravel app

Tony Messias has a complete tutorial covering Elasticsearch plus a sample integration.

Discovering ElasticSearch

A video presentation from 2014 at Laracon EU by Ben Corlett.

Source: Laravel News

Shippo, the multi-carrier shipping API for Laravel Apps →

shippo

With Shippo you can connect your Laravel app to USPS, FedEx, UPS, DHL, and many more shipping carriers across the world in one integration. Using our PHP client library, you can print your first shipping label within minutes.

Simply pass in your package and address information to retrieve shipping rates and purchase labels. Using Shippo’s multi-carrier API, you can easily rate shop across carriers to find the service that works best for you. With our push-based webhooks, you’ll also be able to get notifications about packages enroute.

Make shipping simple with Shippo: API documentation and PHP library

***

Many thanks to Shippo for sponsoring Laravel News this week

Source: Laravel News

The Finder Component

The finder component, with its perfectly intuitive API, is easily one of my favorite Symfony offerings. When you need to fetch a set of files or directories, based upon file type, creation date, file contents, and more, this component is definitely up for the job.
Source: Laracasts

Laravel Turns Five

laravel-birthday

Five years ago today Taylor announced the first release of Laravel to the world.

I’ve been working on this framework for about 7 months. I’ve worked really hard to make it powerful, yet accessible. I set out to launch with documentation as good as CodeIgniter from day one, and I think we did. The syntax is intuitive and expressive.

Even though a lot has changed and improved since that first release the code still has that same feel. Here is an example of the way routing was:

'GET /' => function()
{
    return View::make('home/index');
}

Like all newborns that first release was very minimal–no controllers, no Eloquent, no templating system. It had enough to get you started but lacked the niceties we now enjoy. Here is a look at some of the major items that have been added to the framework in the past five years that we now take for granted:

  • Artisan
  • Authorization
  • Authentication
  • Blade
  • Cashier
  • Collections
  • Composer
  • Controllers
  • Elixir
  • Eloquent
  • Homestead/Valet
  • Migrations/Seeding
  • Middleware
  • Queues
  • SSH Tasks

When I first found Laravel it was late 2011 or early 2012 and I just had a gut feeling this could be big. I jumped on board not long after by creating Laravel News to share news with the community. I’m thankful I was in the right place at the right time and this has enabled me to meet so many friends from all across the world.

Happy birthday Laravel and a big thank you to Taylor and the entire community.

Source: Laravel News

Building a Status Board using Laravel and Vue

Laravel Dashboard

Freek Van der Herten has a new tutorial on how his team built a company status board using Laravel and Vue.js.

Each tile is it’s own Vue component. Laravel’s default scheduler is used to periodically fetch some data from the API’s of Google Calendar, Last.fm, etc… When Laravel receives a response from any of those services a broadcast event is fired to Pusher. This powerful service leverages websockets to carry over server events to clients in realtime. On the client side the Vue component will listen for that broadcasted Pusher event and update the tile.

Then to display it on a TV they use a Raspberry Pi 2. The Pi used the default Raspian OS. When it is powered on it’ll automatically launch Chromium 50 and display the contents

The code behind this is also open source so you can run your own.

Source: Laravel News

Authentication With GitHub

For countless apps, simple GitHub-based authentication is the perfect choice. But don’t worry about figuring out API calls. As always, Laravel makes this process a breeze.

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

PHP Version Stats: May 2016

composer-php-stats

Jordi Boggiano, the creator of the Composer project, released PHP version stats for May of 2016 and a comparison against last November.

I look in the packagist.org logs of the last 28 days for Composer installs done by someone. Composer sends the PHP version it is running with in its User-Agent header, so I can use that to see which PHP versions people are using Composer with.

The results are interesting and it shows a big swing in people adopting PHP 7.0:

composer-2016-01

A few observations: 5.3 dropped to almost nothing which is great news! 5.4 is also down by almost 10% and is definitely on the way out. 5.5 is still big but less so, while 5.6 got a huge boost to become the main version. The big surprise is that we have 20% of PHP7 already! That is great news only six months after this major release came out.

It is great news to see PHP 7.0 gaining so much, but as Jordi said, this is just a subset of the PHP ecosystem. I have to imagine actual adoption is much lower.

Source: Laravel News

1 2 3 4