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

SitePoint Web Foundations:
Quick Tip Install Recki-CT into a Vagrant Ubuntu Box
September 03, 2014 @ 11:14:51

On the SitePoint Web Foundations blog Bruno Skvorc has a quick post showing you how to get Recki-CT installed and working in a virtual machine. The Recki-CT project is a creation of Anthony Ferrara that allows you to compile down PHP into machine code.

If you don't know what Recki-CT is, see @ircmaxell's original post or the repo, we won't go into depth here. This quick tip will merely show you how to install it on a Homestead Improved box, much like we did with other software before.

It's a pretty simple four step process including testing things at the end:

  • Install and configure a Homestead Improved instance
  • Install the JitFu tool
  • Grab the latest Recki-CT library version from GitHub
  • Run the provided test code with the local PHP install and test the performance

You can find out more about the Recki-CT project in its GitHub project.

0 comments voice your opinion now!
reckict install virtualmachine mv homestead vagrant tutorial

Link: http://www.sitepoint.com/quick-tip-install-recki-ct-vagrant-ubuntu-box/

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/

SitePoint PHP Blog:
Diffbot Crawling with Visual Machine Learning
August 01, 2014 @ 11:37:12

On the SitePoint PHP blog Bruno Skvorc has posted a tutorial showing you how to use the Diffbot service to extract data from any page. He introduces both the service itself and walks you through a simple request via Guzzle.

Have you ever wondered how social networks do URL previews so well when you share links? How do they know which images to grab, whom to cite as an author, or which tags to attach to the preview? Is it all crawling with complex regexes over source code? Actually, more often than not, it isn't. [...] If you want to build a URL preview snippet or a news aggregator, there are many automatic crawlers available online, both proprietary and open source, but you seldom find something as niche as visual machine learning. This is exactly what Diffbot is - a "visual learning robot" which renders a URL you request in full and then visually extracts data, helping itself with some metadata from the page source as needed.

He uses a combination of a Laravel installation (via a Homestead instance) and a Guzzle request using a fetched token. The service offers a 10k call limit on a 7 day free trial, so you can sign up and grab your token there. He includes code for an example request fetching a SitePoint page and parsing out the tags. He also briefly looks at the custom handling diffbot allows based on CSS-type rules.

0 comments voice your opinion now!
diffbot parse data service api guzzle homestead tutorial introduction

Link: http://www.sitepoint.com/diffbot-crawling-visual-machine-learning/

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:
How to Install Xdebug with PHPStorm and Vagrant
July 08, 2014 @ 11:32:42

The SitePoint PHP blog has a recent post showing you how to get Xdebug installed and working with PHPStorm through a Vagrant installation. The Xdebug tool provides additional debug information on top of what PHP natively includes in its own error handling.

Xdebug is a PHP extension which allows you to debug and profile your code, view detailed and readable stack traces when errors happen, and much more. For a detailed walkthrough, see Shameer's post. If you're completely unfamiliar with it, you would do well to first install it following the procedures below, and then refer to the post linked above for a breakdown of everything Xdebug can do for you and your apps. In this tutorial, we'll set up Xdebug with PHPStorm for Vagrant hosted PHP apps.

His guide doesn't actually include the installation of Xdebug via Vagrant as the VM he's chosen (Vagrant Homestead) already has it installed. If you need instructions on that, check out this other tutorial. He shows you how to enable it in Homestead and configure the extension to connect back out to your waiting PHPStorm client. He then moves on to the client side and shows how to connect it to the server through PHPStorm's own debugger configuration. He includes a bit of sample code to test the connection (a Laravel route) and checking that the breakpoint handling works as well.

0 comments voice your opinion now!
xdebug phpstorm vagrant homestead install configure

Link: http://www.sitepoint.com/install-xdebug-phpstorm-vagrant/

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/

SitePoint PHP Blog:
Stress-test your PHP App with ApacheBench
June 27, 2014 @ 12:55:58

In this recent post to the SitePoint PHP blog Bruno Skvorc looks at using a popular tool from the Apache project, Apache Bench (or just "ab") to stress-test your application.

There's no telling when your app might attract a throng of visitors at once. [...] Regardless of the reason, massive influxes of visitors are a double-edged sword: they get you what you always wanted - a chance to prove your worth to a large chunk of the internet's population - but also often bring with them what you always feared: absolute downtime. [Some] platforms usually offer plugins that can optimize your application while it's up, so you can fine tune it as you go along, but why not try and predict issues while still developing locally and save yourself time, money and effort in the long run?

He bases the testing off of a Laravel Homestead virtual machine instance and tests a simple "hello world" PHP page to minimize any overhead from other processing. He includes the commands to make a simple ab request and mentions the kinds of request it provides on completion. He moves on from there to something a bit more complex - an actual Laravel-based application using the default "HomeController" and "showWelcome" action/view combination.

0 comments voice your opinion now!
apache bench ab tutorial laravel homestead stress test

Link: http://www.sitepoint.com/stress-test-php-app-apachebench/

SitePoint PHP Blog:
Help Develop PHP 5.6 RC1 on Homestead
June 23, 2014 @ 11:08:01

In this new post from the SitePoint PHP blog Bruno Skvorc puts out a "call to action" for the PHP developers out there to help develop and test out PHP 5.6RC1 (the current 5.6 release candidate) with the Laravel Homestead virtual machine.

Last week we talked about Laravel Homestead, a prepared local development environment for PHP built on Vagrant by Taylor Otwell, meant to serve as a common starting point for all Laravel (and possibly other PHP) projects. [...] A week before that, we talked about the end of beta for 5.6, and the beginning of the RC program. [...] In this post, we'll have a quick look at how we can install it over the regular PHP in Laravel Homestead and report the build feedback back to the QA site.

He refers to the other article for installation instructions and quickly gets into the steps needed to download and install the RC1 version. There's a few dependencies to install before you compile, but with a few commands it should be off and running quickly. Screenshots are provided to show you the output each step of the way too. If all goes well, the output of a "php -v" command line call will show the successful build of PHP 5.6.0RC1.

0 comments voice your opinion now!
homestead releasecandidate testing compile install tutorial laravel

Link: http://www.sitepoint.com/help-develop-php-5-6-rc1-homestead/

SitePoint PHP Blog:
6 Reasons to Move to Laravel Homestead
June 20, 2014 @ 10:14:10

The SitePoint PHP blog has a new post from editor Bruno Skvorc sharing six reasons why he thinks you should move your Laravel-based application over to using the Homestead pre-build Vagrant box.

Laravel Homestead is, in a nutshell: "an official, pre-packaged Vagrant "box" that provides you a wonderful development environment without requiring you to install PHP, a web server, and any other server software on your local machine." In other words, it automatically does what we've done before manually through Vagrant and PuPHPet in articles like these. So what makes it different from your run-of-the-mill Vaprobash/Vagrant/PuPHPet setup? Let's see.

He quickly covers the six points, each with a paragraph or two of explanation:

  • It Works
  • It's Otwell Approved
  • It's Fast to Set Up
  • Ports
  • Best Practices and Common Ground
  • Easy to add sites

There's also a bit of a tutorial aspect here, showing you (via screenshots and configuration examples) how to get some of these points up and running.

0 comments voice your opinion now!
laravel homestead vagrant tutorial install virtualmachine

Link: http://www.sitepoint.com/6-reasons-move-laravel-homestead/


Community Events





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


introduction package language library podcast deployment community update opinion symfony unittest series laravel install interview zendserver api release framework tips

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