PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 21 to 40 of 171

Ibuildings techPortal: Behavior Driven Development in PHP With Behat

Ibuildings techPortal: Behavior Driven Development in PHP With Behat
On the Ibuildings techPortal today there's a new post from Marcello Duarte looking at a different sort of software development methodology - behavior driven development - and using Behat in a sample project.Because of the emphasis on test, developers tend to focus on class structure as opposed to how the system should behave. Ironically the focus on test moves developers away from TDD as it was intended. Quite often, because of the tendency to try to test everything, our tests end up tightly coupled with...

Zoomzum Blog: 10 Powerful PHP Regular Expression For Developers

Zoomzum Blog: 10 Powerful PHP Regular Expression For Developers
On the Zoomzum blog there's a new post with ten regular expressions PHP developers can use to accomplish some common tasks (like email validation and date formatting checks).Regular expression for the PHP developers, on of the most popular tool for validating data is the regular expression. In this list we provides some validation - string match, password match validation, email address validation, date format and many more which helps developer to make their application more fast and easy to execute....

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPDocumentor

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPDocumentor
Michelangelo van Dam has posted the latest in his "quality assurance in PHP projects" series today with a look at something that can make your life and documentation easier - PHPDocumentor.Unfortunately I've come across too many lines of code that were just lines of code, no comments or annotations provided. So, in best cases I could guess the types and parameters, but in many it was too obfuscated. I already talked about usage of a code sniffer like PHP_CodeSniffer in my previous post where you can...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Go PayPal URL handler Mac Address db_shankar MySQL Comunicator EasyCurl CSV2XML Extended PGSQL FB App Google Weather

Quality Assurance on PHP projects - PHPDocumentor

Quality Assurance on PHP projects - PHPDocumentor
It goes without saying people should document their code so that after a few weeks, months, years they still know what they did initially and why. Besides providing a mental note in the code, it also helps your IDE to figure out what your class is all about, which parameters should be used with the methods and what their return types are.But theory is not always reality and unfortunately I've come across too many lines of code that were just lines of code, no comments or annotations provided. So, in best...

Announcing July's Zend Framework Bug Hunt Days

Announcing July's Zend Framework Bug Hunt Days
For those who haven't put the recurring event in their calendar, the Zend Framework Monthly Bug-hunt is here again! This Thursday, Friday and Saturday (the 28th, 29th and 30th of June), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the framework.

NetTuts.com: Uploading Files with AJAX

NetTuts.com: Uploading Files with AJAX
NetTuts.com has a new tutorial posted showing you some of the basics of uploading files via Ajax a bit more natively.I can't seem to reach the end of the fun stuff you can do with emerging web technologies. Today, I'm going to show you how to do something that-until the last while-has been almost unprecedented: uploading files via AJAX. Oh, sure, there have been hacks; but if you're like me, and feel dirty every time you type iframe, you're going to like this a lot.Their method won't work in every...

Leaseweb Labs Blog: Tuning Zend framework and Doctrine

Leaseweb Labs Blog: Tuning Zend framework and Doctrine
On the Leaseweb Labs blog there's a recent post looking and some of the things you can do to optimize Zend Framework and Doctrine when used together for database access.In principle, the combination of Zend Framework with Doctrine is not too difficult. But first let's talk about the preparations. According to the author of Zend Framework, the default file structure of project can be a bit more optimal.They start by describing this optimized file structure (moving the models out of the modules and into...

Pim Elshoff's Blog: Setting up a kickass development environment on Windows

Pim Elshoff's Blog: Setting up a kickass development environment on Windows
Pim Elshoff has a recent post to his blog looking at a "kickass development environment" he's gotten working on Windows that includes PEAR, some type of version control (git or svn - take your pick), Ant for builds and Jenkins for continuous integration.Recently I have become quite interested in quality assurance. Not that many things are going wrong for me, but I'd really like to be more certain about the quality of my work. I've used some tools to help me achieve just that. In less than two hours you...

Voices of the ElePHPant: Interview with Derick Rethans

Voices of the ElePHPant: Interview with Derick Rethans
The Voices of the ElePHPant podcast has released their latest episode - an interview with Derick Rethans, the author of the popular PHP debugger XDebug and a core contributor to the PHP project.Cal's questions mainly revolve around Derick's contributions the PHP core (and one on OpenStreetMap): Do you consider the current way PHP is developed functional or broken (and why)? What would you do to change the way PHP is developed and why would you want to do it that way? Explain to us what OpenStreetMap and...

Liip Blog: PHPDoc Compilers and the @inheritdoc

Liip Blog: PHPDoc Compilers and the @inheritdoc
On the Liip blog there's a new post that compares some of the popular PHPDocumentor-formatted comments parsers. They're looking specifically at the support for interfaces, not just the usual classes and methods.The interfaces define the standard and are extensively documented. The implementation was built by copying the interfaces and implementing the methods. Now we have the documentation comments duplicated, which is a pain to maintain if we clarify or change anything in the interfaces documentation....

Johannes Schluter's Blog: Improvements for PHP application portability in PHP.next

Johannes Schluter's Blog: Improvements for PHP application portability in PHP.next
In a new post today Johannes Schluter talks about the upcoming version of PHP and three of the things it features: no more short tags, no more magic quotes and the dropping of the enable-zend-multibyte compile option.I was writing about PHP.next before, many things improved there meanwhile. Most notably we have a committed version number: The next PHP release will be called PHP 5.4. The topic I want to talk about today is "Improved application portability" which covers multiple small changes which aim at...

Community News: Latest PECL Releases for 07.26.2011

Community News: Latest PECL Releases for 07.26.2011
Latest PECL Releases: mongo 1.2.2 svm 0.1.3 oauth 1.2.1 re2 0.0.1RC1 oauth 1.2.2

PHP and GObject Introspection

PHP and GObject Introspection
GObject Introspection is one of the hidden jewels of the GNOME stack: you write a library in C or Vala, and it becomes automatically available to a wide variety of languages and runtimes, including Python, JavaScript, Java and Qt. Now I would like to bring GObject Introspection to PHP. Why?For many years we in the Midgard community have been using GNOME infrastructure on the web server side, by building our persistence layer on top of GObjects, and providing D-Bus notifications when content changes. So...

phpdoc compilers and the @inheritDoc

phpdoc compilers and the @inheritDoc
In the PHP content repository, we have a set of interfaces and implementation classes of those interfaces. The interfaces define the standard and are extensively documented. The implementation was built by copying the interfaces and implementing the methods. Now we have the documentation comments duplicated, which is a pain to maintain if we clarify or change anything in the interfaces documentation. If this would be Java, we can rely on the documentation to inherit the main text, @param, @return and...

Improvements for PHP application partability in PHP.next

Improvements for PHP application partability in PHP.next
I was writing about PHP.next before, many things improved there meanwhile. Most notably we have a committed version number: The next PHP release will be called PHP 5.4. The topic I want to talk about today is "Improved application portability" which covers multiple small changes which aim at making it simpler for developers to write applications working on any PHP setup. Separating from short_open_tags PHP knows quite a few ways to separate PHP code from surrounding text (usually html), most...

Robert Basic's Blog: Debugging Zend Framework unit tests with Xdebug and NetBeans

Robert Basic's Blog: Debugging Zend Framework unit tests with Xdebug and NetBeans
In this quick post today Robert Basic shares a hint for using Xdebug together with Zend Framework unit tests to get effective results.I've spent this weekend hacking on some unit tests for ZendDojo and I ran into an issue where I need Xdebug to, well, debug. Note, that this is not for debugging a Zend Framework application, but for debugging Zend Framework itself. I am using Netbeans + Xdebug to debug regular code, but debugging unit tests was something completely new for me. Turns out, it's not entirely...

Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion

Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion
Rob Allen has posted his own guide to getting PHP 5.3 set up on OS X 10.7 Lion, the just-released update for Apple's operating system. It comes with a bundled set of PHP-related tools but you might want to set them up your own way. This is where the guide comes in.With OS X 10.7, Apple continues to ship PHP 5.3 with PEAR, GD and PDO_MYSQL out of the box. This is how to set it up from a clean install of 10.7.He goes through each of the pieces of software and talks about where to download the latest from...

Gonzalo Ayuso's Blog: Using node.js to store PHP sessions

Gonzalo Ayuso's Blog: Using node.js to store PHP sessions
Gonzalo Ayuso has an interesting new post today looking at how to go cross-technology in your application and store your PHP sessions in a basic Node.js instance.We use sessions when we want to preserve certain data across subsequent accesses. PHP allows us to use different handlers when we're using sessions. The default one is filesystem, but we can change it with session.save_handler in the php.ini. session.save_handler defines the name of the handler which is used for storing and retrieving data...

Philip Norton's Blog: PHPUnit Skeleton Classes

Philip Norton's Blog: PHPUnit Skeleton Classes
In this new post to his blog, Philip Norton reminds you about a handy feature of PHPUnit, the popular PHP unit testing tool, that can make generating tests for your application simpler - the skeleton class generator.If you create classes in PHP then you should be unit testing them as much as you can. Setting up unit testing classes for your code can be time consuming and involve a bunch of copying and pasting. Thankfully, PHPUnit comes with a couple of helper functions that allow the creation of unit...