Recent releases from the Packagist:valorin/zf2-phinx-module (0.0.2, 0.0.1)
99designs/moa (1.0.0-b2, 1.0.0-b)
Dota pvpgn chat
Fetch Apple iTunes data
Resize Image Helper
Design Pattern PDO Operations
Publication Date Control
Tweets from User Puller
Bar Graph Class
The private variables debate is going around the PHP world again. Brandon Savage posted a pair of articles pointing out the perils of private variables, boiling down mostly to them making extension infesible or impossible. Anthony Ferrara replied with his own article, arguing that the real problem is using inheritance in the first place rather than composition. I figured I'd weigh in on my own blog rather than in a comment. :-)
As an academic matter, I agree with Anthony. Composition and interfaces are...
I recently served as an instructor for an online course teaching the fundamentals of the Web. Before class started, we polled the students in order to learn, among other things, what kinds of skills they hoped to learn by the end of class. More than one student responded with a€oconfidence.a€¯ I found this to be incredibly charming, but it gave me pause: teaching tech skills I could do, but confidence? It's not easy to convince someone to have faith in their abilities when they are just beginning.
We're thrilled to have a major update of the free Underground
PHP and Oracle Manual released on OTN.
The Underground PHP and Oracle Manual is designed to bridge the gap
between the many PHP scripting language and the many Oracle Database
books available. It contains unique material about PHP's OCI8
extension for Oracle Database, and about other components in the
PHP-Oracle ecosystem. It shows PHP developers how to use PHP and
Oracle together, efficiently and easily.
The book has been completely...
Lorna Mitchell has a new post showing nine of the magic methods that are included in PHP by default (like __construct, __get and __set) including a few you may not have used before.The "magic" methods are ones with special names, starting with two underscores, which denote methods which will be triggered in response to particular PHP events. That might sound slightly automagical but actually it's pretty straightforward, we already saw an example of this in the last post, where we used a constructor - so...
In this latest post to his site Anthony Ferrara take a look at templating in web applications - more specifically as it deals with his experience with the Mustache templating engine.I've been playing around with tempting engines a lot lately. For a recent project, I needed the ability to re-use the same template set in both JS and PHP (coupled with the History API, providing seamless dynamic behavior, yet still having raw content pages). Realistically today, there's only one choice for that sort of...
Brandon Savage has recently posted two blog posts portraying his opinion that using private visibility on class methods can be considered harmful in a lot of situations. While I understand the point he is trying to make, I can't say that I agree with it. I do like private visibility and think that it's actually under-used in a lot of software. But it's not because I think Brandon is wrong...Read more A»
Derick Rethans has a new post that the developers out there using MongoDB in their applications will find useful - a look at debugging your connections with the PHP driver (and what kind of information it can provide).In a previous article I already mentioned that the 1.3 version of the MongoDB driver has improved logging functionality to aid with debugging connection issues. I've already briefly introduced MongoClient::getConnections(), but it provides a bit more information than I have already shown....
There's been a few articles posted on various blogs in the PHP community recently about the "most correct" usage of the "private" scope in your PHP applications. As with any feature of just about any language out there, there's people on both sides of the fence. Here's the ones that have weighed in so far:
Brandon Savage's initial post (an excerpt from his upcoming "Do This, Not That" book)
A response to this from Anthony Ferrara
Brandon's own response to comments on his previous article
This new post...
I do not wholeheartedly believe that private methods are evil, or that they were mistakenly included in the PHP language by the core development team. Nor do I believe that there are only two true options when it comes to devising visibility requirements: public and protected. There is a place for private methods, in PHP [...]
For the MySQL users out there, PHPMaster.com has a new tutorial showing you how to use triggers in your database to perform automatic actions on things like "before update" or "after insert".By making MySQL do more work through triggers, the PHP side of my project was greatly simplified. So, it is the intention of this article to give you some insight into the creation and usage of MySQL triggers, so that by the end of this reading you can make use of them in your own projects.They start by explaining...
The guys at PHPMagazin have posted a followup question about the Aura Project for PHP. Here is our original English conversation. I'd like to follow up on the last point where we talked about other frameworks. I think that the a€¦ Continue reading a†'
Recent releases from the Packagist:campaignmonitor/createsend-php (v2.5.0)
bradstinson/assets (0.0.3, 0.0.2)
uam/tcpdf (2.0.2, 1.0.0)
Latest PECL Releases:
This post forms part of a series of articles about using PHP to do objected oriented programming, or OOP. They were originally published elsewhere but are no longer available at that location, so I'm reposting them here. Previously in the series was an introduction to OOP in PHP, in two parts
The title is a bit of a red herring as PHP has more than 9 magic methods, but these will get you off to a good start using PHP's magic methods. It might be magic, but no wands are required!
The "magic" methods are...
About a year ago, I wrote out some principles for web programming in PHP. I called it the MicroPHP Manifesto. The thing is, what I talked about wasn't really specific to PHP. So, I've decided to explore the concepts again in the context of the other languages I work with.
Debugging Connections with the MongoDB PHP driver
Tuesday, December 11th 2012, 10:13 JST
In a previous article I already mentioned that the 1.3 version of the MongoDB driver has improved logging functionality to aid with debugging connection issues. I've already briefly introduced MongoClient::getConnections(), but it provides a bit more information than I have already shown. The other improvement are changes to the MongoLog class.
I've been playing around withA temptingA engines a lot lately. For a recent project, I needed the ability to re-use the same template set in both JS and PHP (coupled with the History API, providing seamless dynamic behavior, yet still having raw content pages). Realistically today, there's only one choice for that sort of requirement: Mustache. I've learned a lot while playing with Mustache, and it's really changed my entire viewpoint on presentation layer construction.Read more A»
On 7PHP.com today they've posted their latest PHP community interview - the answers to their questions with Adam Culp, the organizer of the South Florida PHP User Group and Sunshine PHP Conference.In this edition I talked with Geeky Boy, [Adam Culp @adamculp], who is The Leader and Organizer of The South Florida PHP User Group (aka @SoFloPHP) and the organizer of the hot and buzz-ling SunShinePHP Conference for developers. @SunShinePHP will be held in Miami / Florida in feb 2013 and is promising a...