Karsten Deubert has a recent post to his blog looking at annotations in Zend Framework applications to enhance functionality already in the framework.Recently I had the idea to influence Controller Actions with annotations but discarded it with thoughts like "In PHP I will have to use reflection and some black magic to get this working which will have insane performance hits for my applications"... until I set everything up to see that it costs just 1-2ms in average per request without any form of...
Richard Miller has been posting a series of articles to his blog recently that look at integrating the ElasticSearch tool with a Symfony2-based application.Elasticsearch is built on top of Lucene and indexes data as JSON documents in a similar way to the way MongoDB stores data. This means as with Mongo that it is schemaless and creates fields on the fly. It is queried over HTTP using queries which are themselves defined in JSON. [...] What I want to do is look at how you can avoid having to deal with...
The South Florida PHP User Group has announced their December 2011 meeting - happening on the 14th at 7pm - with a look at how far PHP has come in 2011 and some of the things coming up. Rasmus Lerdorf will be presenting.For our "FREE" (yes, all of our meetups are free) December meetup we have a special guest, Rasmus Lerdorf, visiting to talk about "PHP in 2011". Rasmus Lerdorf, the inventor of PHP, will talk to us and give his perspective on the prospects of his brainchild. "PHP in 2011": A look at the...
Chris Hartjes has a reminder posted to his blog today in the form of this recent post that "scope is not a mouthwash" - personal experience from his recent development where he forgot about something as simple as scoping (and it caused him all sorts of headaches).For [a chapter in my book on dependency injection] I am using Pimple, an incredibly small but effective dependency injection container. Easy to use, simple and effective documentation, just what I was looking for. I also noticed that Pimple...
Gonzalo Ayuso has a new post to his blog today showing some of the experimentation he's done with PHP 5.4 features like the short array syntax, calling methods through arrays and traits.PHP5.4 it's close and it's time to start playing with the new cool features. I've created a new Virtual Machine to play with the new features available within PHP5.4. I wrote a post with the most exciting features (at least for me) when I saw the feature list in the alpha version. Now the Release Candidate is with us, so...
If you run a web application like WordPress you should know that a many database transactions creating an overhead on your database tables. This overhead will slow down the database server because more memory need to used than without overhead. While this PHP tutorial is for the beginning webmaster is the PHP code (or the [...]
In a new post to his blog Volker Dusch points out a new feature in a recent release of PHPUnit, the popular unit testing framework for PHP - textual code coverage details.Three weeks ago PHPUnit 3.6 was released and it has a little new feature you might have missed until now. PHPUnit can now show you code coverage information on the command line.Options for the report output include: colorizing, writing the output to a file, including a project summary, namespace separation and package (using the...
PHPMaster.com has posted the fifth part of their "Localizing PHP Applications 'The Right Way'" series, this time with a focus on extracting data from the .pot template files to define in your PHP. (This is the final part of the series.)In Part 4 you learned how to use gettext for one of the most complex aspects of localization a developer can face, plural forms. In this, the final part of the five-part series, I'll teach you how you to automate part of the localization process by extracting msgids and...
On the AjaxRay site today there's a new review of an introductory book from Packt Publishing about Kohana 3.0 (Beginner's Guide).When framework newbies asks me with which [framework] he should start, need to think twice before suggesting Kohana. The main reason is, it's documentation was not as rich as Codeigniter or Zend Framework. And there was no book. BTW, Kohana unofficial wiki is a BIG try to help in this issue. Besides, recently Packt has published the first book on Kohana "Kohana 3.0 Beginner's...
On NetTuts.com today there's a new tutorial showing off a package management system for the CodeIgniter framework, Sparks, that makes installing and using packages similar to Ruby's gems.Sparks is a new package-management system for CodeIgniter that extends the core with support for gem-like sparks. This tutorial interweaves an entry-level overview of the architecture and usage of the sparks system with the creation of dovecote-a simple spark for managing RSS data.The tutorial introduces you to the...
Popular posts from PHPDeveloper.org for the past week:DevShed: Building an ORM in PHP
ZetaCode.com: PHP GTK tutorial
Johannes Schlüter's Blog: High Performance PHP Session Storage on Scale
DevShed: Building an ORM in PHP: Domain Modeling
Henrik Bjørnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G
Lorna Mitchell's Blog: POSTing JSON Data With PHP cURL
DZone.com: Creating a virtual server with Vagrant: a practical walkthrough
Ibuildings techPortal: DPC Radio: Distributed Couch Apps -...
Here's what was popular in the PHP community one year ago today:Henri Bergius' Blog: PHP: Finally getting an ecosystem?
Mike Willbanks' Blog: Android C2DM with PHP and Zend Framework
Ruslan Yakushev's Blog: How to install PHP PEAR and phploc on Windows
Label Media Blog: Design Patterns in PHP - Factory method
SimasToleikis' Blog: New to PHP 5.4: Traits
Mashable.com: 8 Experts Break Down the Pros and Cons of Coding With PHP
Devis Lucato's Blog: Anonymous objects in PHP - Composition, Mocks, Refactoring...
If you missed out on the Future of PEAR/Pyrus webcast event put on by Engine Yard, you're in luck - they've posted a recording of the event.In this panel discussion, we tackle topics including the direction PEAR and Pyrus will be going in the next few years, obstacles that may be on the horizon, and more.PEAR is the package library of standardized packages for a variety of common development tasks. Pyrus is a new package manager to make installing and maintaining PEAR packages simpler. Engine Yard's next...
On NetTuts there's a new tutorial showing how to take data from a MySQL database and translate it into a usable Excel file with the help of some simple PHP.A CSV (Comma Separated Value) file is usually sufficient for exporting MySQL data as an Excel Spreadsheet. These CSV files are data only though. A real Excel spreadsheet has formatting, formulas and perhaps even graphics - the difference between a simple method of data transfer and a professional report. This tutorial shows how to use open source PHP...
In the fourth part of their series looking at working with the filesystem in PHP, DevShed has posted a new tutorial focusing on security and permission handling for files/resources.These days, security is paramount to any server installation, large or small. Most modern operating systems have embraced the concept of the separation of file rights via a user/group ownership paradigm, which, when properly configured, offers a wonderfully convenient and powerful means for securing data. In this section,...
In this new post on DZone.com today John Esposito talks about an interesting PHP framework that has come to light lately - the Yet Another Framework, an oddly named PHP extension that provides some of the basics to build a framework-based application.Why care about another PHP framework? especially one that's actually called Yet Another Framework? Because Yaf isn't just a framework. It's a PHP extension (listed on PECL), so it's written in C -- so it's very, very fast. How fast? Here's a benchmark...
On PHPMaster.com today there's a new tutorial that shares a few regular expression tips about doing some search and replace in your content.So how can you practice using regex if you are limited to just using them in your code? The answer is to use a utility, of which there are many, that uses regex for performing search and replace. I'm sure everyone is familiar with the standard "find x and replace it with y" type of search and replace. Most IDEs and text editors have built in regex engines to handle...
Building an Identity Map in PHP
External program executor
Icons
Iqq
Mysql2Search
ASCII art generator for PHP
On her blog today Lorna Mitchell has a quick tip for anyone having an issue sending POSTed JSON data with the curl functionality that can be built into PHP. The trick to her method is sending things with the right header.We can't send post fields, because we want to send JSON, not pretend to be a form (the merits of an API which accepts POST requests with data in form-format is an interesting debate). Instead, we create the correct JSON data, set that as the body of the POST request, and also set the...
On the php|architect site there's a recent tutorial from Cal Evans about building a transactional email system with the help of a simple library and the SES system from Amazon.I love APIs. A well-defined API can make short work of a complex problem. It's even more fun when you find a cool API with a great wrapper to make it simple to use. That's what I found when I started playing with Amazon's Simple Email Service; a tool that was easy to work with, solved a problem I needed solved, and had a simple to...
|
Latest PHP Tweets
|