PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 141 to 160 of 197

Are PHP developers functophobic?

Are PHP developers functophobic?
Now, that was overly general, so let me clarify: PHP developers who have reached a certain degree of sophistication basically stop using plain functions - instead everything goes all classes and methods. At least that's the observation I made when looking at various open-source libraries and frameworks. The only type of function you'll find in any of the aohigh-qualitya libs are anonymous functions. But that's pretty much it. If you look at other languages, the landscape is different. For example Python...

Sherif Ramadan: Finally Getting finally In PHP?

Sherif Ramadan: Finally Getting finally In PHP?
In this recent post to his site Sherif Ramadan looks at a proposal that's currently under view (RFC) to add the "finally" keyword to PHP.It's quite possible that PHP may finally be getting the addition of the finally block in its try/catch block. [...] It also solves a simple, but overlooked problem for the developer. With finally we offer the user-space code a chance to do any clean up work that may be necessary after a try block has terminated execution and with clear semantics.He includes a use case...

Zumba Fitness Engineering: Using Application Events to Hook in Plugins

Zumba Fitness Engineering: Using Application Events to Hook in Plugins
In this recent post on the Zubma Fitness Engineering site, Chris Saylor looks at using events in your applications to hook in plugins to easily (and dynamically) enhance functionality.In many instances, having a plugin system (even for closed-source applications) is a convenient and safe approach to adding functionality to a product. It minimizes risk by not having to modify the core of the source. In this article, I'll be discussing how we implemented a plugin system for our cart software to allow for...

MaltBlue.com: Hot to Use the Zend Form ViewScript Decorator in All Modules

MaltBlue.com: Hot to Use the Zend Form ViewScript Decorator in All Modules
On his MaltBlue.com site today, Matt Setter has a new post showing you how to use the Zend_Form ViewScript decorator in your Zend Framework-based application's forms.If you've been using Zend Forms for any length of time, you'll know just how flexible and configurable they are. [...] We can, as I'm quite fond of, use the ViewScript decorator. This allows us to have nearly 100% control of the configuration of the look and feel of our rendered forms.The ViewScript decorator lets you have full control over...

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

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:StackOverflow.com: The Definitive Guide To Forms based Website Authentication DZone.com: Hardening PHP: SQL injection - Complete walkthrough Pim Elshoff's Blog: SOLID design Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host... PHPBuilder.com: Smarty PHP Template Engine: Building PHP Apps in a Flash Dave Marshall's Blog: Traits in PHP 5.4 - HelloWorld with Logging Trait Superdit.com: Google Web...

Liip Blog: 2-step verification with Google Authenticator and PHP

Liip Blog: 2-step verification with Google Authenticator and PHP
With the recent focus on security (caused by some major issues with large companies) Google has responded by reinforcing their 2-Factor Authentication method. Thankfully, there's a way you can implement that functionality in your applications too using the information in this tutorial (note: the date of posting is older, but it's definitely relevant now).Many large web services nowadays support 2-step verification to enhance the security for their users. [...] The main point about 2-step verification is...

PHPMaster.com: Laravel: Is It Really Clean and Classy?

PHPMaster.com: Laravel: Is It Really Clean and Classy?
PHPMaster.com has a new tutorial in their series about the Laravel framework posted today asking if the framework is really "clean and classy" as its documentation describes."Laravel is a clean and classy framework for PHP web development. Freeing you from spaghetti code, Laravel helps you create wonderful applications using simple, expressive syntax. Development should be a creative experience that you enjoy, not something that is painful. Enjoy the fresh air." That's the text which can be found on the...

Project: Major Codeception Update (BDD in PHP)

Project: Major Codeception Update (BDD in PHP)
The Codeception project (BDD testing in PHP) has gotten a major update to its feature set and has bumped up to v1.1:Many core classes were refactored to solve the common issues and reduce the level of dark magic inside. Only white magic left. And that's really cool 'cause you don't need to study to source code to implement your custom hooks now. Codeception is rapidly evolving to be the professional testing tool, ready to use by testsers and developers through out the PHP world.Improvements in this large...

Thoughts On Space Shuttle Code Process

Thoughts On Space Shuttle Code Process
Today's post is in response to an article that I read yesterday entitled They Write The Right Stuff. It's a very interesting and insightful look into one of the most complex and critical pieces of software ever produced (also one of the most expensive). I think we can learn a lot from what they are doing, but I also think we should avoid copying what they are doing. The point that's missed is practicality.Read more A

Project: PHPHint.org - Online PHP Code Analysis

Project: PHPHint.org - Online PHP Code Analysis
Klaus Silveira has submitted a project he's come up with to help PHP developers detect problems in their code via a web-based application - PHPHint.org.PHPHint is a community-driven, quick and easy to use, online tool that analyzes your PHP code and looks for potential errors, lack of best practices and code smell. It also allows you to clean your code automagically.It was created to spread the work about the PSR standards and the PHP-FIG group, the importance of getting rid of code smell and applying to...

Laura Thompson: The dark craft of engineering management

Laura Thompson: The dark craft of engineering management
Laura Thompson has a new post to her site about the "dark craft" of engineering management and of her thoughts as to why it's as much a "craft" as writing the actual code.Why is management a craft? It's a craft for the same reasons engineering is a craft. You can read all the books you want on something but crafts are learned by getting your hands in it and getting them dirty. Crafts have rough edges, and shortcuts, and rules of thumb, and things that are held together with duct tape. The product of...

Gonzalo Ayuso: Book review: CouchDB and PHP Web Development

Gonzalo Ayuso: Book review: CouchDB and PHP Web Development
Gonzalo Ayuso has posted a book review of a Packt Publishing book "CouchDB and PHP Web Development":Finally the new Book "CouchDB and PHP Web Development" written by Tim Juravich is ready an in my hands. It was my first experience as technical reviewer. The author contacted me by email and the editor sent me book chapters to review. Basically I gave my opinion, I test the code and I hunt for bugs. It was a great experience. Now is really cool to see the book in my hands.Overall, he gives it a positive...

2-step verification. You can offer it with PHP, too

2-step verification. You can offer it with PHP, too
You may certainly have heard of the bad things which have happened to Mat Honan. Some hackers deleted almost everything of him. iPhone, iPad, Macbook, Google, hacked his Twitter Account, etca Almost everything could have been prevented if he had used Google's 2-step Verification. So if you have a Google Account and didn't enable it, go ahead and do it. But that's not the point of this blogpost. Offering 2-step verification is something which greatly can increase the security of your web application. And...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Securify Auto Expires AutoExpires PHP lib for PunyPNG API Model Validation Header from folders Salat Reminder jsFlush IMDB API

Mercurial revision history search with PHP

Mercurial revision history search with PHP
Hgview is a fantastic tool but for some reason the search field refused to come up in my version no matter how much CTRL+F I tried.... Read More

A history of Midgard visuals

A history of Midgard visuals
As far as open source CMSs or web frameworks go, Midgard is one of the oldest ones. We started the work on it somewhere between 1997 and 1998, and the first version was launched in May 1999. Over the years our communications and visuals have changed quite a bit, and this post aims to show some of that evolution. Much of this material has been gathered from old blog posts, various version control systems, and the Internet Archive.1999The first Midgard website, designed by Janne Puonti had a distinct Art...

New open source project: Sabre VObject

New open source project: Sabre VObject
Over the last little while I've been working at fruux on a new open source project: an iCalendar/vCard parser for PHP. Actually, the project has existed since 2010 as it's really a spin-off from SabreDAV. I felt like the library could appeal to a wider audience, and benefit from a separate release schedule.The tool heavily makes use of PHP's magic object and array accessors, to provide an API quite similar to what simplexml is for XML. In addition it contains features for parsing dates, expanding...


Historical Twitter access - A journey into optimising Hadoop jobs

Historical Twitter access - A journey into optimising Hadoop jobs
A journey into optimising Hadoop jobs: the strategies to scan and filter a PetaByte of archived data, schedule new jobs and deliver data fast.

PHPEasy.co.uk: Object Orientation Basics part 4 - Implementing CRUD methods

PHPEasy.co.uk: Object Orientation Basics part 4 - Implementing CRUD methods
PHPEasy.co.uk continues their series looking at some of the basics of Object-Oriented Programming (OOP) in PHP with part four showing how to implement CRUD methods (Create/Read/Update/Delete) on a database connection.In the last tutorial in this beginners series we discussed using PDO to connect to a MySQL database. Following on from that tutorial we are going to improve the Guitar class we made by adding some basic CRUD methods so that our class can interact with our database using PDO.He brings back...