Quantcast
Channel: PHPDeveloper.org
Viewing all 1515 articles
Browse latest View live

Community News: Recent posts from PHP Quickfix

$
0
0
Recent posts from the PHP Quickfix site:

Community News: Packagist Latest Releases for 11.26.2014

$
0
0
Recent releases from the Packagist:

SitePoint PHP Blog: Building an Internationalized Blog with FigDice

$
0
0

On the SitePoint PHP blog they've posted the second part of the series looking at using the FigDice for the templates in your application. In this new post they expand on the basics presented in part one and look at internationalization.

In part one of this two-part series I started looking at FigDice, a PHP templating system that takes a slightly different approach to most. [...] In this second and final part we're going to add a simple blog to our example site, which allows us to look in more detail at Figdice's concept of data feeds. We'll also look at internationalization, translating some of the site's content into a couple of additional languages.

In this part of the series (part two of two) they create a simple blog application based on their "Feed" class from before, faking some basic content. He then creates the factory class the FigDice templating will fetch the data from and makes a view to use it. He also talks about the optional functionality to add additional data to the feed output as attributes on the element. Finally he shows how to work all of this back into the HTTP framework under a "blog/post" URL.

Link: http://www.sitepoint.com/building-internationalized-blog-figdice/

php[architect]: Build a VM for Drupal 8 with Vagrant

$
0
0

A new tutorial has been posted on the php[architect] site today showing you how to build a VM for Drupal 8 with the help of Vagrant.

At this year's php[world] hackathon, I spent my time getting a Vagrant machine configured to run Drupal 8. I know there are other options, like Acquia's own Dev Desktop, or even Zend Server. However, I like using Vagrant to run my LAMP stacks, especially on OS X. I've never been able to easily run xAMP on non-Linux machines. Installing MySQL can be a pain, system updates can change the version of PHP you're running, and some PHP extensions are really difficult to build-even with Homebrew. Vagrant simplifies getting a working development environment running by automating the provision of a virtual machine for you, usually with a tool like Chef, Puppet, or Ansible.

Oscar (the author) took advantage of some time at the php[world] hackathon to create the necessary files for building this environment. He walks you through the steps to creating the basic vagrant file with "config" options (explaining each one) and walks through the setup of additional options, software like Apache and Drupal. He then sets up the Ansible configuration to create the box, run the provisioning and configuration of the resulting server. Finally, he shows the result of the install if everything was successful.

Link: http://www.phparch.com/2014/11/build-a-vm-for-drupal-8-with-vagrant/

SitePoint WordPress Blog: WordPress.org's Most Popular Plugins for 2014

$
0
0

On the SitePoint WordPress blog they've made an official list of the most popular plugins for 2014 according to WordPress.org's own "Most Popular" list. They provide links to the plugins, descriptions of what they do and the current number of downloads (at the time of the post).

You might have noticed that WordPress.org lists the most popular plugins in the right sidebar in the plugins directory. As we're nearing the end of 2014, I thought it would be interesting to not only provide a quick explanation of each of these plugins, but to also explore some of the other popular alternatives. Just because a plugin is listed in the most popular list, doesn't always mean it's the best fit for your project. [...] It's not a definitive list, only based on my experiences. Hopefully you'll come across a few new plugins that you might not yet have heard of!

Plugins in their list include both some familiar names and some newcomers to the top of the pack:

As mentioned, each comes with a brief description of what they do, a link to their page on the plugin site as well as links to a few other alternatives if it's not the perfect fit.

Link: http://www.sitepoint.com/wordpress-orgs-most-popular-plugins-for-2014/

NetTuts.com: Laravel, BDD and You: The First Feature

$
0
0

NetTuts.com has posted the second part of their "Laravel, BDD and You" series (part one is here) building on their introduction in part one and building a first feature (what BDD tools call their tests).

In the second part of this series called Laravel, BDD and You, we will start describing and building our first feature using Behat and PhpSpec. In the last article we got everything set up and saw how easily we can interact with Laravel in our Behat scenarios. [...] In short, we are going to use the same .feature to design both our core domain and our user interface. I have often felt that I had a lot of duplication in my features in my acceptance/functional and integration suites. When I read everzet's suggestion about using the same feature for multiple contexts, it all clicked for me and I believe it is the way to go.

He starts in with the creation of the first feature - a simple "welcome" test that evaluates the main Laravel start page. He uses this example to set up a Laravel trait that can be reused in other parts of the testing and how to use it in a Feature Context file. He then starts to create the tests for the sample time tracking application started in part one. He gives an example of the feature file's contents, the result from its execution and the "small refactors" that it will suggest to add functionality to the feature file. With this skeleton in place, he then fleshes out the test to make it actually work with the requests. He walks through each function and provides the code needed for both the test and other tools/objects they need.

Link: http://code.tutsplus.com/tutorials/laravel-bdd-and-you-the-first-feature--cms-22486

Site News: Blast from the Past - One Year Ago in PHP

$
0
0

Community News: Packagist Latest Releases for 11.27.2014

$
0
0
Recent releases from the Packagist:

Site News: Popular Posts for the Week of 11.28.2014

$
0
0

Community News: Packagist Latest Releases for 11.28.2014

$
0
0
Recent releases from the Packagist:

Kevin Dunglas: PHP 7: Introducing a domain name validator and making the URL validator stricter

$
0
0

In his latest post Kevin Dunglas has released information about a patch for URL filtering that aims to bring more validation and functionality to the pre-existing filter_var functionality.

Until now, there was no PHP's filter validating that a given a string is a valid domain name (or hostname). Worst, FILTER_VALIDATE_URL was not fully enforcing domain name validity (this is mandatory for schemes such as http and https) and was allowing invalid URLs. FILTER_VALIDATE_URL was also lacking IPv6 host support.

His patch introduces support for domain validation rules more strict to what the RFC defines and includes IPv6 support. There's a few code examples included in the post showing the new support. He points out that there's still some things that aren't supported yet, like internationalized domains, but there's future plans for it.

Link: http://dunglas.fr/2014/11/php-7-introducing-a-domain-name-validator-and-making-the-url-validator-stricter/

That Podcast: Episode 11: The one that Dave thought was kinda wishy washy

$
0
0

That Podcast has released their latest episode today - Episode #11, "The one that Dave thought was kinda wishy washy" with PHP community hosts Beau Simensen and Dave Marshall.

Beau and Dave have officially crossed beyond the 10 episode milestone but were forced to keep things short because of various scheduling conflicts. Oddly enough, the actual topic of the episode was supposed to be along the lines of "making the time for projects and things" so that should make for a fun episode 12. That will be so meta. This time, though, they discuss what it looks like for podcast co-hosts to not always get along, colour blindness, recent and upcoming PHP conferences, PHP-FIG, recent happenings at work, and more fun encryption stuff. For those of you who like them to keep it short, this one is for you!

Other topics mentioned in this latest episode include:

You can listen to this new episode either through the in-page player or by downloading the mp3 of the show. If you enjoy it, be sure to subscribe to their feed for more great shows as they're released.

Link: http://thatpodcast.io/episodes/episode-11-the-one-that-dave-thought-was-kinda-wishy-washy

Community News: Packagist Latest Releases for 11.29.2014

$
0
0
Recent releases from the Packagist:

Community News: Packagist Latest Releases for 11.30.2014

$
0
0
Recent releases from the Packagist:

Community News: Latest PEAR Releases for 12.01.2014


Community News: Packagist Latest Releases for 12.01.2014

$
0
0
Recent releases from the Packagist:

Loosely Coupled Podcast: Episode 14: The Not-So-Secret Life of Remote Developers

$
0
0

The Loosely Coupled Podcast, hosted by PHP community members Jeff Carouth and Matt Frost, has posted their latest episode: Episode 14: The Not-So-Secret Life of Remote Developers.

In this episode, Jeff and Matt talk about some things they have learned about being remote developers. While both are currently employed as remote developers they have also worked in on-site jobs. This episode is a collection of things that might be different, things to expect, things that might be hard, and, of course, whether you need to wear pants.

You can listen to this latest episode either through the in-page player or by downloading the mp3 directly. If you enjoy the topics and the show be sure you subscribe to their feed to get the latest as they're released.

Link: http://looselycoupled.info/blog/2014/11/30/episode-14-the-not-so-secret-life-of-remote-developers/

Anthony Ferrara: It's All About Time

$
0
0
In his latest post Anthony Ferrara talks about a tricky subject in PHP - timing attacks. A timing attack has to do with vulnerabilities that can come up because of the differences in time it takes to perform cryptographic operations (like hashing or encrypting).
An interesting pull request has been opened against PHP to make bin2hex() constant time. This has lead to some interesting discussion on the mailing list (which even got me to reply :-X). There has been pretty good coverage over remote timing attacks in PHP, but they talk about string comparison. I'd like to talk about other types of timing attacks.

He starts with a definition of what a remote timing attack is and provides an example of a simple script showing the delay that's key to the attack. His script deals with string location but it gives you an idea of how the attack works and where the danger lies. He points out that even remotely attackers could determine the times to perform operations (down to the nanosecond) and use this to their advantage. He points out that both == and === are vulnerable to this type of attack because of how the comparison happens. He gives two options (one an internal function) to help protect your application and briefly covers a few other types of timing attacks: index lookup, cache-timing and branch-based timing attacks.

Link: http://blog.ircmaxell.com/2014/11/its-all-about-time.html

Pascal Martin: October 2014 on internals@php

$
0
0

Pascal Martin has posted his latest summary of the discussions happening on the php.internals mailing list for the month of October 2014.

809 messages have been exchanged in October 2014 on PHP's internals@ mailing-list - a bit more than in September. [...] First of all, PHP 5.6 has entered its normal cycle of releases, with a first maintenance version at the beginning of the month.

He includes a graph of the (monthly) number of emails over the last year and how October fits in. Topics mentioned include:

If you'd like to follow along with the discussions or are interested in getting an "inside look" at what's going on with the language, you can use either the web-based reader or subscribe to the mailing list.

Link: http://blog.pascal-martin.fr/post/php-mailing-list-internals-october-2014-en

Voices of the ElePHPant: Interview with Lorna Jane Mitchell

$
0
0

The Voices of the ElePHPant podcast has posted their latest community interview episode, this time featuring well-known PHP community speaker Lorna Jane Mitchell.

She and host Cal Evans talk about her experience speaking and the work that she's doing with O'Reilly in a video tutorial series. They also talk about the training work she does for all levels of developers, from beginner to advanced (and even those wanting the Zend certification).

You can listen to this latest episode either through the in-page audio player or by downloading the mp3 for listening offline. If you enjoy the episode, be sure to subscribe to their feed for the latest episodes as they're released.

Link: http://voicesoftheelephpant.com/2014/11/25/interview-with-lorna-jane-mitchell/
Viewing all 1515 articles
Browse latest View live