PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4401 to 4420 of 6889

Making A PEAR-Compatible Package

Making A PEAR-Compatible Package
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. Now that my repustateApi client component both has working API calls and 100% code coverage from its unit tests, I want to make a PEAR package ready for release. At this stage, I'm only...

Zend Developer Zone: Using the Plurk API with PHP

Zend Developer Zone: Using the Plurk API with PHP
On the Zend Developer Zone there's a recent post looking at using the Plurk API in a PHP application (by Vikram Vaswani). Plurk is a micro-blogging service similar to Twitter.While it's quite easy to connect a PHP application to Twitter (I've discussed it in detail in this Devzone article), there exist a number of other free micro-blogging sites that also expose open APIs. In this article, I'll introduce you to Plurk, which includes a JSON-based service API and also comes with a PHP library to simplify...

Unit Test Coverage For Components

Unit Test Coverage For Components
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. Working unit tests is only half the battle. If your unit test doesn't cover 100% of the code, chances are you're shipping bugs. 100% code coverage doesn't guarantee bug-free code by any...

Kore Nordmann's Blog: Generating XML schemas from XML data

Kore Nordmann's Blog: Generating XML schemas from XML data
In a new post to his blog Kore Nordmann talks about a tool he's developed that will "learn" XML schemas based on a document it's given. The tool, the XML-schema-learner, makes it as simple as a one-line command to generate the DTD file and transform it into a schema.You can get the "XML schema learner" from my Github account: https://github.com/kore/XML-Schema-learner. Just clone it, and you can run the tests, or use the learn command to infer XML schemas from XML data.He includes an example XML...

The Lone Star PHP Conference

The Lone Star PHP Conference
This morning I and fellow DallasPHP-er Jake Smith officially launched the website for the local PHP conference we've been working on for the past few months - the Lone Star PHP Conference (happening in Dallas, Tx on June 11th). It's a one-day, two-track event that brings together some great speakers from around the Dallas area to talk on loads of different topics. Here's a few of them from the list: Using PHP and MySQL to Build Applications with Windows Azure Disregard Inputs, Acquire Zend_Form Using...

JSClasses.org Blog: Lately in JavaScript podcast - Episode 5 (PHP.js)

JSClasses.org Blog: Lately in JavaScript podcast - Episode 5 (PHP.js)
In the latest episode of the Lately in Javascript podcast, Manuel Lemos and Michael Kimsal interview Brett Zamir about PHP.js, a project that tries to bring PHP methods to the Javascript environment.PHP.js is a JavaScript library that provides the same functions as the PHP language in JavaScript. Manuel Lemos and Michael Kimsal interview Brett Zamir, one of the main developers of the PHP.JS project, to tell us more about it on episode 5 of the Lately in JavaScript podcast. On this episode they also...

ZendCon Sessions Episode 043: Improving QA on PHP Projects

ZendCon Sessions Episode 043: Improving QA on PHP Projects
This is the ZendCon 2010 session recording of aoImproving QA on PHP Projectsa by Michelangelo van Dam.

Stuart Herbert's Blog: Series: Beyond Frameworks

Stuart Herbert's Blog: Series: Beyond Frameworks
Based on his Beyond Frameworks session presented at this year's PHP UK Conference 2011, Stuart Herbert is in the process of creating a series of posts based about its contents:[In my session] I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components.As of the time of this...

Sameer Borate's Blog: Data filtering and validation using Inspekt

Sameer Borate's Blog: Data filtering and validation using Inspekt
Sameer Borate has a recent post to his blog looking at an important part of any application - filtering input from the user and output before its used. In his examples he uses a library called Inspekt (from Ed Finkler) to make the job a lot easier.Most web security glitches are caused by insufficient input filtering and validation. Despite a large number of validation libraries being available, input sanitization is usually bypassed due to sheer laziness or the idea that your site is somehow immune from...

Voices of the ElePHPant: Interview with Vid Luther

Voices of the ElePHPant: Interview with Vid Luther
The Voices of the ElePHPant podcast has posted their latest episode - an interview with Vid Luther,Cal's "three questions" of choice this time center around Vid's community experience: How did you get involved in the PHP community? What's the biggest benefit you or your company/employer gets from participating in the PHP community? What's the easiest way to get involved in the PHP community? As always, you can listen to this latest episode via the in-page player, by downloading the episode or by...

Community News: Latest PECL Releases for 03.29.2011

Community News: Latest PECL Releases for 03.29.2011
Latest PECL Releases: xdebug 2.1.1RC1 xdebug 2.1.1

Generating XML schemas from XML data

Generating XML schemas from XML data
Already some time ago I published a tool on Github which allows you to generate (or learn) XML schemas from XML data. You provide the tool with a set of XML files and you get a nice, human readable, XML schema (XSD, DTD, a) from that. Read more for the details.

Proudly presenting my first Symfony2 training

Proudly presenting my first Symfony2 training
In January I announced that I had become a Sensio training partner. So far, I had not scheduled any training sessions though. With Symfony2 nearing completion though, it's time to change that, and I've finally scheduled my first training session on Symfony2.

Pragmatism over Theory: Protected vs Private

Pragmatism over Theory: Protected vs Private
I often favor pragmatism over theory; probably because programming is how I earn a living but also because I don't have any computer science degree and what I know I've learned from my experience. In the recent months, there have been a lot of discussions in the PHP community about the usage of private over protected visibility for methods and properties in Open-Source libraries. To summarize my point of view:"private" is for purists and "protected" is for pragmatic developers. Coming from Perl, I've...

Testing Remote Web Services The Quick And Nasty Way

Testing Remote Web Services The Quick And Nasty Way
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. To be a success, all components need high-quality unit tests, and this applies to the component I am building, a client for Repustate.com's semantic analysis API. But how do you go about...

Duplicates Detection with ElasticSearch

Duplicates Detection with ElasticSearch
As I mentioned on Twitter recently, duplicate detection (or de-duping) is one of the most unappreciated problems that the developers of certain types of applications face sooner or later. The applications I'm talking about share two main characteristics: item collection and some sort of social aspect. A prime example of this is Delicious. Users collect items (bookmarks), and, since multiple people can collect the same item (URL), there needs to be duplicate detection, so that it is possible to infer some...

Private vs Protected Methods: The Debate That Never Ends

Private vs Protected Methods: The Debate That Never Ends
Image by chrisjohnbeckett via Flickr As a new generation of PHP web application frameworks start establishing beach heads in preparation for an all out war for mindshare, I've been contemplating some of the key changes we're seeing emerge that may gain traction over time. Today, I just thought to share my thoughts about private methods vs protected methods. Something that has impacted on Doctrine 2 and Symfony 2. And every other piece of PHP code since PHP 4 came along. Doctrine and Symfony have adopted...

Eran Galperin's Blog: Database Optimization Techniques You Can Actually Use

Eran Galperin's Blog: Database Optimization Techniques You Can Actually Use
Eran Galperin has posted a few helpful tips (ones you can "actually use") for optimizing your database and how your application uses it.I understand the need for simplicity because of the wide audience of Smashing Magazine, but I'd wish they'd give something more than the absolute basics you could find in almost any other site out there [in their recent tutorial]. I also didn't like some of the methods mentioned there for profiling (or the code itself), so I here is my starter guide to optimizing...

Working With Non-Namespaced Components

Working With Non-Namespaced Components
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps that rely on a PHP framework. In this series of blog posts, I'm going to look at how to go about creating and working with components. A component-based approach works well with the new namespace support added to PHP 5.3, and indeed I'm making full use of this in the components I'm building for this tutorial. But not...

php|architect: Looking for a simpler MySQL library? Try MeekroDB

php|architect: Looking for a simpler MySQL library? Try MeekroDB
On the php|architect site today John Mertic has a new post looking at a simpler MySQL library - MeekroDB.I remember fondly back in the day, when PHP 4.0 was all the rage, that if you wanted to interface with MySQL there was one choice: the PHP mysql extension. Then came database abstraction layers (such as ADODB and PEAR_DB) and newer extensions (namely PDO and mysqli), all with the goal of simplifying the code needing written to be able to get data successfully out of a database. But even then, it still...

Latest PHP Tweets