PHP.net

Liip Blog: PHPUCEU (PHP Unconference Europe)

PHPDeveloper.org - Tue, 07/05/2013 - 18:16

On the Liip blog Lukas Smith has posted a wrapup of the PHPUCEU (PHP Unconference Europe) and some of the sessions that made up the two day event.

So this weekend I visited my hometown Berlin for the PHPUCEU. [...] This wasn't a "normal" conference. This was an unconference. As such attendees proposed talks they could give, but also talks that they would want to hear. Every morning every attendee would then have two votes for talks. The top voted talks would then be distributed across the 4 slots in the 3 available tracks. As such several of the sessions ended up being quite ad hoc with multiple people chipping in with what they new about the topic. What is also special about this event is that the sessions are just as long as the breaks to facilitate idea exchange about the session topics, but also about other topics. Overall I found this to be an absolutely thrilling experience.

Presentations chosen and made at this year's unconference included:

  • a talk about the PHPRC (PHP Content Repository)
  • "Clean Puppet"
  • Behavior Driven Development
  • Agile documentation
  • Hood.ie
  • Symfony2 REST API
  • NoSQL is Not the Answer

If you're interesting to see what the event was like, check out some of the photos they've posted to their site.

Link: http://blog.liip.ch/archive/2013/05/06/phpuceu.html

PHPMaster.com: Goodbye CodeIgniter, Hello Laravel

PHPDeveloper.org - Tue, 07/05/2013 - 17:37

On PHPMaster.com today there's a new post from Daniel Gafitescu that compares CodeIgniter (an "old standby" in the PHP framework world) and Laravel, a relative newcomer. The article is broken up into a few different categories, with some sample code included to illustrate.

n the beginning of my career I stumble upon CodeIgniter and I love it for its simplicity, small footprint, and good documentation. [...] But last year, because of the Twitter buzz from some in the PHP community, blog posts, and the suggestions of some friends, I give Laravel 3 a try - and since that time I've never looked back. So, in this article I'd like to present a comparison of the two frameworks from my point of view.

He compares the two frameworks based on things like the requirements to get them installed, how they handle creating REST APIs, the general organization of their code (and your code using them) as well as command line support. There's a "miscellaneous" section that talks about some of the smaller differences and a (very) brief mention of the communities for each.

Link: http://phpmaster.com/goodbye-codeigniter-hello-laravel

Anthony Ferrara: Our Failure As An Industry

PHPDeveloper.org - Tue, 07/05/2013 - 16:19

Anthony Ferrara has a new post to his site today describing what he sees as a failure in our industry - letting security become an after-thought to the development process.

In the April issue of the PHPArch magazine (also published on her blog), Elizabeth Tucker Long wrote a really interesting editorial piece coining a concept she called Security-Driven-Development. She (quite correctly) identified a problem in the current development community where security has become an after-thought (if it's thought of at all). This isn't a new concept, in fact it's a concept that I and many others have been preaching for quite a while now. However I've been coming to realize that I've had it wrong the whole time. And I think the entire industry is getting it wrong today.

He talks some about the current state of web application development and how, even with more powerful technologies than ever, we still fall short in security testing. He suggests that the current way of doing things - treating security testing as a "throw it over the wall" or "someone else's job" problem - needs to stop. Security needs to be integrated with development and he suggests that managers and developers of open source projects should take the lead.

Link: http://www.lornajane.net/posts/2013/setting-multiple-headers-in-a-php-stream-context

Community News: Packagist Latest Releases for 05.07.2013

PHPDeveloper.org - Tue, 07/05/2013 - 15:00
Recent releases from the Packagist:

Community News: Latest PECL Releases for 05.07.2013

PHPDeveloper.org - Tue, 07/05/2013 - 14:00
Latest PECL Releases:
  • pq 0.3.0 * Added parser for result arrays ('{{1,2},{3,4}}')

  • APCu 4.0.1 - Fix crash in cli on apc_store where enable_cli=0 - Testing eval serializers - Change apc_* to apcu_* in apc.php - Fix exports in API - Expose to userland whether APCu is compiled with the APC compatibility. See the APCU_APC_FULL_BC constant. (Anatol) - Fixed bin dump producing garbage data in multithreaded env. (Anatol)

  • pthreads 0.0.44 fix ::merge duplicate keys (#97, #98) improvements from weltling for config.w32 corrections to some examples fix #99 resources crash fix tests - missing include and format incorrect in expect section

DevConf 2013

PHP Conferences - Tue, 07/05/2013 - 00:00
DevConf 2013 in Moscow, Russia on Jun 14 DevConf is the ultimate meeting place for russian-speaking web-developers, combining several language-specific conferences under one roof. This year DevConf will include the following sections: DevConf::PHP();DevConf::Ruby();DevConf::Python();DevConf::Javascript();DevConf::Mobi(); Each section will feature several talks from the active contributors/authors of the language. Among the invited speakers are Dmitry Stogov (maintainer of Zend Engine and Zend OpCache and many more), Chiu-Ki Chan (Google), Lennart Regebro, Andrey Aksyonov (author of Sphinx), Alexey Rybak (Badoo), Alexander Makarov (one of the main contributors to Yii), Sergey Petrunya (of MariaDB fame), and many others, see more details on the official website.
Categories: PHP.net

PHPMaster.com: MongoDB Indexing, Part 1

PHPDeveloper.org - Mon, 06/05/2013 - 18:50

New on PHPMaster.com is the first part of their series about indexing in MongoDB, a method for optimizing your collections to make querying them even faster. They cover the five main types of indexes and situations where they can help.

Indexing is one of the more important concepts of working with MongoDB. A proper understanding is critical because indexing can dramatically increase performance and throughput by reducing the number of full documents to be read, thereby increasing the performance of our application. Because indexes can be bit difficult to understand, this two-part series will take a closer look at them.

They look at the default "_id" index, secondary, compound, multikey and multikey compound indexes. Example documents and results are included as well as some of the options that can be set on the index types to tweak performance. They finish up the article with a look at some of the limitations and considerations to think about when using indexing, including that they cannot be used with regex queries.

Link: http://phpmaster.com/mongodb-indexing-1

Lukas Smith: What is needed to REST in Symfony2

PHPDeveloper.org - Mon, 06/05/2013 - 17:24

Lukas Smith has a new post to his site that asks the question "what's needed to REST in Symfony 2?" In it he talks about some of the current issues surrounding REST support in Symfony (bundles) and a "call to arms" to create something better.

I think we already have quite a nice toolchain for REST in Symfony2 with Bundles like FOSRestBundle, JMSSerializerBundle, NelmioApiDocBundle, FSCHateoasBundle and HautelookTemplatedUriBundle. What is great about these Bundles is that they are all nicely integrated with each other. But there are still some limitations which should be addressed.

Some of the still outstanding issues he points out include issues with content-type and routing, dynamic content in the NelmioApi bundle, Behat context testing, JSONP support and more. He suggests gathering together a product backlog of these items and possibly making a kickstarter to fund its development.

Link: http://pooteeweet.org/blog/2221

7PHP.com: Know Thy PHP Conference Know The Dutch PHP Conference (DPC) & The Dutch Mobile Conference

PHPDeveloper.org - Mon, 06/05/2013 - 16:09

On 7PHP.com today there's a new post spotlighting two upcoming "sister" conferences happening early next month in Amsterdam - the Dutch PHP and Dutch Mobile Conferences. He asked the organizers a few questions about the event like:

  • What the conference(s) are about
  • When it was first launched and where its been held
  • Average and highest number of attendees
  • Working with sponsors
  • Speaker submission and selection
  • How it compares to other conferences
  • The differences between running a user group and conference

There's also a mention at the end of the unconference that happens parallel to the event - an open area where people can present on the topic of their choosing. This year's unconfernece chair for DPC/DMC is Jeroen van Dyke.

Link: http://7php.com/php-conference-dpc-dmc

Community News: Packagist Latest Releases for 05.06.2013

PHPDeveloper.org - Mon, 06/05/2013 - 15:00
Recent releases from the Packagist:

PHP Conference Argentina

PHP Conferences - Mon, 06/05/2013 - 00:00
4-5 OCTOBER 2013, Buenos Aires, ARGENTINA This year we gathered the best of the programming world. With several talks that cover a wide range of topics related to web development, PHP Conference Argentina is a conference no programmer wishes to miss (whether or not they use PHP.)
Categories: PHP.net

Community News: Packagist Latest Releases for 05.05.2013

PHPDeveloper.org - Sun, 05/05/2013 - 15:09
Recent releases from the Packagist:

Community News: Packagist Latest Releases for 05.04.2013

PHPDeveloper.org - Sat, 04/05/2013 - 15:08
Recent releases from the Packagist:

Reddit.com: Zend2 vs Symfony2

PHPDeveloper.org - Fri, 03/05/2013 - 19:57

On Reddit.com there's a discussion happening comparing two popular and prominent PHP frameworks - Zend Framework 2 and Symfony 2.

For those that have used both frameworks, what one do you feel is a better overall framework? I tried ZF2 in beta and it seemed overly complicated to symfony but I don't know if its gotten better since then.

Opinions shared in the comments of the post include things like:

  • "So if you are learning for job prospects, go Zend. I love Symfony 2 though, its a joy to work with."
  • "It doesn't matter. Each has a strength and a weakness, and neither will go away. Pick one and use it, you'll be fine."
  • "I don't think there is such thing as a best framework as you should use the best tool for the job. I don't think MVC is the solution to all problems."
  • "Both are quite bloated but they have to be considering their target markets."

On the whole, the views are of the "best tool for the job" mentality - a good sign for the community and these two frameworks.

Link: http://www.reddit.com/r/PHP/comments/1dcqst/zend2_vs_symfony2

Phil Sturgeon: Testing and Contributing with Composer Packages

PHPDeveloper.org - Fri, 03/05/2013 - 18:47

Phil Sturgeon has posted a guide to his site about running tests and contributing back to packages that live in Composer.

While Composer has been around for a while now, many packages are still in their infancy (< 1.0) or sometimes are just not as feature filled as they could be. To be fair there is always more to be done. It can always do more, or do the same thing more efficiently. Whatever the case, pull requests are going to be a common thing for the PHP community to be doing to these packages and this needs to be done safely, with unit-testing. So, how do you run their test suite and add your own tests?

He includes a step-by-step guide to getting the environment set up to run the package's tests and how to add some of your own. He includes the commands to send the pull request back up to Github (on your own fork, of course) and how to use that same fork as your package resource until the main project is updated.

Link: http://philsturgeon.co.uk/blog/2013/05/testing-contributing-composer-packages

Sameer Borate: Efficiently Replicating RETS data to MySQL

PHPDeveloper.org - Fri, 03/05/2013 - 17:26

Sameer Borate has a new post to his site that shares how he converted a RETS database to MySQL with the help of a PHP library, PHPRETS.

A recent project of mine entailed replicating a RETS database on a local MySQL database server. The client had a new real-estate mobile search app in development and wanted to have a local copy of the RETS database for search queries instead of a remote RETS server. [...] Replicating RETS data rather than using the live version is slightly complex, however. In order to replicate the RETS data into your own local database, a series of processes are needed in order to make sure the data you have is both updated and in sync with the server.

He breaks it down into three main steps with some sample code for each:

  • Grabbing the complete database once
  • Keeping the data in sync
  • Ensuring the cron job is executed on regular intervals
Link: http://www.codediesel.com/data/efficiently-replicating-rets-data-to-mysql

Francesca Krihely: On the Developer Experience

PHPDeveloper.org - Fri, 03/05/2013 - 16:22

In a new post to her site Francesca Krihely starts looking at the developer experience - how developers relate to your service and product and what kinds of things you need to be doing to help engage them.

I had a great brainstorm a few weeks back with the members of the Developer Evangelists meetup on the topic of the User Journey, or as I'll call it now, the Developer Experience. The main problem we wanted to solve was how we convert new users into experts or awesoms users. In many ways, a Community Manager and/or Developer Evangelist is responsible for driving user adoption and making users successful, so this is a topic near and dear to all of our hearts. I walked away with three key things that help improve the developer experience: Great Product, Great Support and Empowerment.

This post talks about the first point - the "great product" - and notes that, if the product isn't useful and enjoyable to use, even developers won't bother with it. She also talks some about the need for quality documentation and how it can be seen as a sort of "marketing" to developers.

Work on making your product fit for an awesome developer experience. If you build it, they will come. Link: http://francescak.me/blog/2013/05/02/on-the-developer-experience

Community News: Packagist Latest Releases for 05.03.2013

PHPDeveloper.org - Fri, 03/05/2013 - 15:04
Recent releases from the Packagist:
Syndicate content