The PHP North West user group has announced their latest meetup happening April 3rd at 7pm in Manchester. Derick Rethans will be speaking about designing MongoDB schemas.One of the challenges that comes with moving to MongoDB is figuring how to best model your data. While most developers have internalized the rules of thumb for designing schemas for RDBMSs, these rules don't always apply to MongoDB. The simple fact that documents can represent rich, schema-free data structures means that we have a lot of...
In this recent post to his blog Johannes Schlüter he talks about a way that he's come up with to test functionality that uses persistent connections (and an module he created to help).In a few rare cases this is not what people like, for that PHP introduced "persistent connections" of different kinds. Testing those is a bit annoying as you have to configure a webserver and ensure to hit the same instance over the course of a test and then use a load generator, probably one which can detect a failure....
The third part of the "PHP source for developers" series has been posted over on Anthony Ferrara's blog today looking at the variables PHP's internals use.In this third post of the PHP's Source Code for PHP Developers series, we're going to expand on the prior posts to help understand how PHP works internally. In the first post of the series, we looked at how to view PHP's source code, how it's structured as well as some basic C pointers for PHP developers. The second post introduced functions into the...
Here's what was popular in the PHP community one year ago today:PHP.net: Security Notice (wiki.php.net)
Sean Coates' Blog: PHP Community Conference
Phil Sturgeon's Blog: Video: Set up a REST API with CodeIgniter
Propel Blog: The End of Autoloading
Slawek's Blog: Efficient file serving in PHP application with nginx
Kevin Schroeder's Blog: Integrating Zend_View with WordPress
Volker Dusch's Blog: Mandatory "Template Engines (Twig) vs Plain Old PHP" Post
Rob Allen's' Blog: A Zend Framwork compound form...
So I've been trying out Behat for some REST testing recently and came across an interesting situation - I needed to send HTTP Auth credentials as a part of my test. Of course, there's a method for this on the Session object (setBasicAuth) but it's not implemented as a default phrase. It took me a bit to make it to the (now logcial) point that I needed to set these before I used the aoGiven I am onaa phrase to go to the page.
So, to accomplish this, I set up a custom aoGivena phrase to set them:...
Dynamic PDF generation or html to PDF conversions are a common tasks for many web applications. Creating order documents for your eCommerce application, coupons for your sales and marketing campaign or a PDF version from your web pages, are just some examples. You can use PHP class script to create dynamic PDF files. This list is a bout the most popular PHP classes, PDF import functions and PHP scripts with the abbility to convert valid html code into PDF files.
In this recent post to his blog Philip Norton shows you how to get started with DocBlox, the "new defacto PHP class documentation generator" that recently announced it would be merging with the phpDocumentor project in version 2.Whereas PHPDocumentor would scan and generate all of the code in one go, DocBlox will scan the source code and generate a series of XML files based on the code it finds. It will then use these files to generate the API documentation in a number of different formats, although HTML...
As Tobias Schlitt points out in this recent post to the QaFoo blog, the recording of a webinar he did (for Zend) about "Writing Testable Code" has been posted for listening online.In this session you will gain insight into the secret of writing easily testable code and you'll learn how this relates essentially to good object orientation.The recording is just one of many webinars Zend offers on a wide range of development topics, including:
Design Patterns in PHP
Multibyte string handling in PHP with the...
Brandon Savage has a new post to his blog with a few tips about doing well ("rocking") in your next job interview.One of the things about the PHP field is that developers are highly sought after, and good developers are prized. While anyone can slap "PHP Developer" on their resume, most companies have gotten good at weeding out the pretenders from the real deal. This means that for a highly qualified developer, interviewing should be an easy step towards receiving an offer.He's broken it up into a few...
On DZone.com today Giorgio Sironi has a new post showing how you can use Doctrine with MongoDB to work with Document objects from the database.In the PHP world, probably the Doctrine ODM for MongoDB is the most successful. This followes to the opularity of Mongo, which is a transitional product between SQL and NoSQL, still based on some relational concepts like queries. [...] The case for an ODM over a plain Mongo connection object is easy to make: you will still be able to use objects with proper...
As a part of the move to git/github that the PHP project recently made, a reminder was posted that the PHP-GTK project has also migrated.
PHP-GTK is a PHP extension that enables you to write client-side cross-platform
GUI applications. This is the first such extension of this kind and one of the
goals behind it was to prove that PHP is a capable general-purpose scripting
language that is suited for more than just Web applications.
The full source can be found and forked/cloned over on github and is just...
In this third post of the PHP's Source Code for PHP Developers series, we're going to expand on the prior posts to help understand how PHP works internally. AIn the first post of the Aseries, we looked at how to view PHP's source code, how it's structured as well as some basic C pointers for PHP developers. AThe second post introduced functions into the mix. AThis time around, we're going to dive into one of the most useful structures in PHP: variables.Read more A
The phpDay/jsDay conference organizers have passed along an update about this year's conference(s) (happening May 167th/17th & 18th/19th in Verona, Italy) - they've confirmed some of their first speakers for both sides of the event!
We are very happy to announce the first confirmed speakers for the
jsDay and phpDay 2012!
jsDay: Mark Boas (jPlayer/Happyworm), Greg Schechter
(YouTube),Christopher Rhodes (Google) and Brandon Keepers (GitHub),
the full list here.
phpDay: Rasmus Lerdorf (Php creator), Zeev...
I've been at this for a bit, but now it's official: I'm now based in MAnster, and working at fruux as a co-founder / tech-lead.The feeling of having this amount of control over a product is great. We've also recently got funded from High-Tech GrAnderfonds and netSTART Venture and moved into a new office so things are indeed pretty serious. We have some flexibility to focus on making a great product, in what we feel is 'the right way' (whatever that may mean). It will be an exciting time :)So if you...
One of the things about the PHP field is that developers are highly sought after, and good developers are prized. While anyone can slap aoPHP Developera on their resume, most companies have gotten good at weeding out the pretenders from the real deal. This means that for a highly qualified developer, interviewing should be an [...]
Add to Google Calendar
Why is it better to develop in PHP with classes (OOP)?
By Manuel Lemos
Some developers code their PHP projects writing classes of objects.
Others also write classes but do it just because they see others doing it without being able to explain why classes are a good thing.
Others do not write classes but reuse other people code written in the form of classes.
Others completely refuse to write or reuse other developer classes because they do not see much point in doing it.
Read this article to learn...
Last week, I gave an live webinar about "Writing Testable Code" in the PHP world, on behalf of Qafoo and Zend, for which the recording is now available online! You can watch the whole 1 hour session online on the Zend website. In addition, for example if you don't like videos, you can find the slides for download in our talks section.
New in Xdebug 2.2: Colours on the command line
Wednesday, March 21st 2012, 09:43 GMT
This is the first article in a series about new features in Xdebug 2.2. Besides support for PHP 5.4, there are a few that might be of interest.
Xdebug has overloaded var_dump() with xdebug_var_dump() for a long time and the overloaded function could be configured with a few configuration settings. There is xdebug.var_display_max_data to configure how much of a string should be shown;...
The third part of the PHP's Source Code for PHP Developers series can be found on ircmaxell's blog. It introduces how PHP values are internally represented and how they are used in the source code.
The fourth part, which will again be published on this blog, will cover how arrays are implemented in PHP.