News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tobias Hermann:
Programming language subreddits and their choice of words
August 21, 2014 @ 12:14:13

Tobias Hermann has put together some interesting statistics pulled from the various programming subreddits on the Reddit.com site. He measures the choice of words for each community based on how own they're used.

While reading about various programming languages, I developed a hunch about how often different languages are mentioned by other communities and about the average conversational tones used by relative members. To examine if it was just selective perception on my site, an unconscious confirmation of stereotypes, or a valid observation I collected and analysed some data, i.e. all comments (about 300k) written to submissions (about 40k) in respective programming language subreddits from 2013-08 to 2014-07 using PRAW and SQLite. In this article I will present some selected results.

He first covers the "mutual mentions" for each of the groups with the largest connection from the PHP subreddit being to Python. He also compares the results to the TIOBE index for each (average popularity). He gets into more details about the words used (abstract, category, pure, etc) with PHP placing somewhere roughly in the middle for most data sets. The most interesting result, however, came with the set of curse words and the frequency of their use. In the PHP Reddit community the usage of these terms is, by far, the most of any group. Unfortunately, PHP also ranks lower on the "happiness" scale.

If you're interested in seeing how he came up with these results, you can get the raw results and the code he used.

0 comments voice your opinion now!
programming community language word choice subreddit

Link: https://github.com/Dobiasd/programming-language-subreddits-and-their-choice-of-words/blob/master/README.md

Sanisoft Blog:
Themes in CakePHP 3, A step by step HowTo
August 21, 2014 @ 11:45:38

On the Sanisoft blog there's a recent post that gives you a step-by-step guide to working with themes in the upcoming version 3 release of the CakePHP framework.

Almost every application I code has themes which either the end user can change or the admin can set or can be changed on the fly. Doing all these things was easy in CakePHP 2.x. With the first alpha release of CakePHP 3.x I was naturally keen to try out how theming worked with V3.

He shows how to convert an existing theme into one that will be compatible with the 3.x version of the framework. He breaks it down into seven steps (well, technically eight) to make it easier to follow along:

  • Step 0: Make the "posts" table
  • Step 1: Bake the model, controller and views for the Posts
  • Step 2: Bake in the "Twit" plugin
  • Step 3: Download and install the Twitter Bootstrap
  • Step 4: Create the "default.ctp" file with the content given
  • Step 5: Make the "index.ctp" template with the given content
  • Step 6: Add the line to the AppController to use the new theme
  • Step 7: Reload and verify the results
0 comments voice your opinion now!
theme cakephp framework version3 update template

Link: http://www.sanisoft.com/blog/2014/07/21/themes-in-cakephp-3-howto/

php[architect]:
php[world] Conference Five Amazing Keynotes
August 21, 2014 @ 10:33:24

The php[architect] group has officially announced the five keynote speakers they'll be having at this year's php[world] conference conference.

We are excited to announce today the amazing keynote speakers that we have lined up for our php[world] conference this November. We've worked hard to find the best speakers and talks that cover the breadth of the PHP experience. We want php[world] to be a conference that pulls together all the different fragmented communities of PHP into one place to share ideas, and our keynotes reflect that mission.

The keynote speakers for this year come from a wide range of communities:

  • Luke Stokes: "Turning Your Code Into a Company: The Parts They Don't Tell You."
  • Angela Byron: "Drupal 8: A Story of Growing Up and Getting Off the Island"
  • Jeffrey A. "jam" McGuire: "Idealism as code: From philosophy to empowerment"
  • Andrew Nacin: "Trust, Community, and Automatic Updates"

The final "keynote" is actually a panel of seven developers representing some of the major projects in the PHP ecosystem: WordPress, Drupal, Magento, Joomla!, Symfony, Laravel, and Zend Framework. You can find out more about these keynotes here or just check out the conference on the main conference site.

0 comments voice your opinion now!
phpworld14 conference keynote announcement panel discussion

Link: http://www.phparch.com/2014/08/phpworld-conference-five-amazing-keynotes/

SitePoint PHP Blog:
PINQ - querify your datasets - introduction
August 21, 2014 @ 09:20:19

The SitePoint PHP blog has posted the first part of a new series they're releasing about querying your data with Pinq. It's a PHP-based query tool that provides a fluent interface for searching and traversing your data. In this first post of the series Taylor Ren introduces you to the library and shows some basic usage.

You may have heard of LINQ (Language-Integrated Query), a "set of features introduced in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic". It provides necessary interfaces and syntax to perform various queries on a given dataset so that operations like filtering, sorting, grouping, aggregating, etc can be performed. PINQ (PHP Integrated Query) is "based off the .NET's Linq, and unifies querying across arrays/iterators and external data sources, in a single readable and concise fluent API".

He talks about normal searching (equals matching) and "faceted searching", narrowing down the results piece by piece until you find what you need. He gives an example with some sample database data and shows the results of a simple query with a price filter and grouped by author. He includes the code to make it happen (inside a simple Silex application) too. He then takes a deeper look at the LINQ queries and how related statements are handled.

0 comments voice your opinion now!
linq pinq query dataset tutorial introduction series part1

Link: http://www.sitepoint.com/pinq-querify-datasets-introduction/

Community News:
Packagist Latest Releases for 08.21.2014
August 21, 2014 @ 08:02:05

Recent releases from the Packagist:
0 comments voice your opinion now!




Sound of Symfony:
Episode 3 - Developer Experience
August 20, 2014 @ 12:05:07

The Sound of Symfony podcast has posted their latest episode today: Episode #3, "Developer experience. Join hosts Magnus Nordlander and Tobias Nyholm as they talk about the Symfony project's recent emphasis on the developer experience.

In this much belated episode we talk about developer experience and getting new coders into your open source project. The episode features not one, but two interviews. First up we have a short talk with Ryan Weaver about the DX initiative and the DX hack day, and afterwards we talk to Cathy Theys from Drupal about Drupal's mentoring efforts and how you can make your project more welcoming to new developers.

The episode includes the two interviews and mentions of several topics including the name of the next release of PHP and the announcement of the Symfony Live London 2014 speakers. You can listen to this latest episode either through the in-page player or you can download the audio file for offline listening. If you enjoy the episode, consider subscribing to their feed to get the latest episodes delivered as they're released.

0 comments voice your opinion now!
soundofsymfony podcast ep3 developer experience ryanweaver cathytheys

Link: http://www.soundofsymfony.com/episode/episode-3/

Amazon Web Services Blog:
End of Life of PEAR Channel
August 20, 2014 @ 11:14:18

If you're a user of the Amazon AWS Web Services SDK software and are using the PEAR channel for installing the tool, you'll need to check out this new post to the AWS blog about its retirement.

There's been a noticeable wave of popular PHP projects recently announcing that they will no longer support PEAR as an installation method. Because the AWS SDK for PHP provides a PEAR channel, we've been very interested in the discussion in the community on PEAR channel support. PEAR has been one of the many ways to install the AWS SDK for PHP since 2010. While it's served us well, better alternatives for installing PHP packages are now available (i.e., Composer) and literally all of the PEAR dependencies of the AWS SDK for PHP are no longer providing updates to their PEAR channels.

He goes through several of the major dependencies the AWS SDK has (like Phirum, PHPUnit and Guzzle) and how they've announced the retirement of their own PEAR channels. Updates to the AWS SDK PEAR channel will cease on September 15th, 2014 but will still be available for downloads of older versions of the library. He also links to the location of the latest Phar and Zip archives if you'd like to use those.

0 comments voice your opinion now!
aws sdk endoflife pear channel announcement

Link: http://blogs.aws.amazon.com/php/post/TxFFMBZ80DA1OJ/End-of-Life-of-PEAR-Channel

Oracle Coherence Blog:
Getting Started With The Coherence Memcached Adaptor (and PHP)
August 20, 2014 @ 10:55:45

As Chris Jones mentions in his latest post to his OTN blog, there's a tutorial that's been posted by David Felcey showing how to get started with Oracle Coherence via the memcached adapter in PHP. Coherence is Oracle's own version of a key/value storage that focuses on performance and scalability.

Coherence 12c (12.1.3) adds support for Memcached clients to directly store data a in Coherence cluster using the Binary Memcached protocol. This post outlines how to configure the Coherence Memcached Adaptor and includes a simple PHP example to show how Memecached clients can connect to a Coherence cluster.

He includes the XML configuration you'll need to create/modify on the Oracle side to make the memcached connections work and explains the different parts. With that in place, he moves on to the PHP example, showing a simple memcached request to store and retrieve a string. It's almost transparent to the PHP user save some of the configuration options required to make it work.

0 comments voice your opinion now!
oracle coherence introduction memcached adapter tutorial

Link: https://blogs.oracle.com/OracleCoherence/entry/getting_started_with_the_coherence

Lorna Mitchell:
Running Multiple Versions of PHP
August 20, 2014 @ 09:28:57

In the latest post to her site Lorna Mitchell has posted a helpful hint on how you can run multiple versions of PHP at once, mostly how to get the latest version without messing up your current install.

When I advise people about upgrading their PHP version, I say things like "just run your test suite with the new version" "just grab the new version and try your site with the built-in webserver". A couple of people recently have asked for more detail on how to actually achieve these things so here's a quick primer on getting new PHP without touching anything to do with your existing PHP installation.

You'll need a bit of knowledge around compiling software to get the job done, so if you're only used to aptget-ing or yum-ing you might be a little lost. She does include all the commands you'll need including the special "prefix" flag on configure telling it to put PHP in a different location than normal. She also includes a brief test to ensure that it's all up and working (using the built-in web server).

0 comments voice your opinion now!
multiple version language tutorial installation

Link: http://www.lornajane.net/posts/2014/running-multiple-versions-of-php


Community Events





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


community wordpress application api bugfix unittest install code developer laravel introduction interview list podcast language configure release series threedevsandamaybe library

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