Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Listopad, 2011

Volker Dusch’s Blog: Textual code coverage information for PHPUnit

Volker Dusch’s Blog: Textual code coverage information for PHPUnit

In a new post to his blog Volker Dusch points out a new feature in a recent release of PHPUnit, the popular unit testing framework for PHP – textual code coverage details.

Three weeks ago PHPUnit 3.6 was released and it has a little new feature you might have missed until now. PHPUnit can now show you code coverage information on the command line.

Options for the report output include: colorizing, writing the output to a file, including a project summary, namespace separation and package (using the @package phpdoc tag) information. He includes a use case he’s found for it – small projects where you can cover the whole codebase quickly (with a “watch” command example filtering based on a certain class).

Source: http://www.phpdeveloper.org/news/17173

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 5

PHPMaster.com: Localizing PHP Applications "The Right Way", Part 5

PHPMaster.com has posted the fifth part of their “Localizing PHP Applications ‘The Right Way’” series, this time with a focus on extracting data from the .pot template files to define in your PHP. (This is the final part of the series.)

In Part 4 you learned how to use gettext for one of the most complex aspects of localization a developer can face, plural forms. In this, the final part of the five-part series, I’ll teach you how you to automate part of the localization process by extracting msgids and generating a PO template file (.pot) from your application’s PHP code.

They show how to use the xgettext command-line tool to pull out strings from your source and automatically make them into a domain template. They help you set up three sample PHP files and run the xgettext command on them to pull out messages defined in the text of the files to set up keys in the template. Screenshots are included showing how to use Poedit to use these templates for your new translations.

Source: http://www.phpdeveloper.org/news/17172

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginner’s Guide

AjaxRay.com: The first Kohana book : Kohana 3.0 Beginner’s Guide

On the AjaxRay site today there’s a new review of an introductory book from Packt Publishing about Kohana 3.0 (Beginner’s Guide).

When framework newbies asks me with which [framework] he should start, need to think twice before suggesting Kohana. The main reason is, it’s documentation was not as rich as Codeigniter or Zend Framework. And there was no book. BTW, Kohana unofficial wiki is a BIG try to help in this issue. Besides, recently Packt has published the first book on Kohana “Kohana 3.0 Beginner’s Guide“. Jason D. Straughan wrote this book for Kohana version 3.x.

The review includes an overall assessment of the book, a detailed description of how the chapters are laid out and some of the complaints he had about the book’s contents – a lack of code examples in some places, demos/screenshots pointing out what the framework can really do and the inclusion of some deprecated methods.

Overall, the book is well organized, focused and will be helpful on it’s purpose. I felt it’s capable to teach Kohana to a new guy, in a smooth way. Yes, there have some printing mistakes, old (because they are changed in new version) function use and some other minor issues, but seems ignorable to me. I’d recommend it for Kohana beginners.

Source: http://www.phpdeveloper.org/news/17171

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

NetTuts.com: Easy Package Management for CodeIgniter with Sparks

NetTuts.com: Easy Package Management for CodeIgniter with Sparks

On NetTuts.com today there’s a new tutorial showing off a package management system for the CodeIgniter framework, Sparks, that makes installing and using packages similar to Ruby’s gems.

Sparks is a new package-management system for CodeIgniter that extends the core with support for gem-like sparks. This tutorial interweaves an entry-level overview of the architecture and usage of the sparks system with the creation of dovecote-a simple spark for managing RSS data.

The tutorial introduces you to the Sparks system and helps you get it installed and configured to work with a first basic package – a dovecote example. He helps organize and write the first spark as well as set up any dependencies and autoloading it might need. He follows this by adding some functionality to the package to make pushing output to the view simpler.

You can download the source for the complete tutorial’s code.

Source: http://www.phpdeveloper.org/news/17170

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Popular Posts for the Week of 11.25.2011

Site News: Popular Posts for the Week of 11.25.2011Popular posts from PHPDeveloper.org for the past week:

Source: http://www.phpdeveloper.org/news/17169

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

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

Site News: Blast from the Past – One Year Ago in PHPHere’s what was popular in the PHP community one year ago today:

Source: http://www.phpdeveloper.org/news/17168

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Engine Yard: The Future of PHP: PEAR and Pyrus Webcast Recording

Engine Yard: The Future of PHP: PEAR and Pyrus Webcast Recording

If you missed out on the Future of PEAR/Pyrus webcast event put on by Engine Yard, you’re in luck – they’ve posted a recording of the event.

In this panel discussion, we tackle topics including the direction PEAR and Pyrus will be going in the next few years, obstacles that may be on the horizon, and more.

PEAR is the package library of standardized packages for a variety of common development tasks. Pyrus is a new package manager to make installing and maintaining PEAR packages simpler. Engine Yard’s next webcast will cover the Lithium framework with core contributors Nate Abele, Garrett Woodworth, and John Anderson on December 1st.

Source: http://www.phpdeveloper.org/news/17167

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

NetTuts.com: How to Generate a Complete Excel Spreadsheet From MySQL

NetTuts.com: How to Generate a Complete Excel Spreadsheet From MySQL

On NetTuts there’s a new tutorial showing how to take data from a MySQL database and translate it into a usable Excel file with the help of some simple PHP.

A CSV (Comma Separated Value) file is usually sufficient for exporting MySQL data as an Excel Spreadsheet. These CSV files are data only though. A real Excel spreadsheet has formatting, formulas and perhaps even graphics – the difference between a simple method of data transfer and a professional report. This tutorial shows how to use open source PHP components to create “real” Excel spreadsheets from MySQL SELECT statements.

With the help of the PHPExcel tool, making Excel-formatted files is a simple process. They show how to label columns, pull data out with a “quick and dirty” SQL statement, formatting the results to something a bit more clean and iterate through the pages of data to push them into the spreadsheet (including formulas). You can download the full source to get everything in one shot.

Source: http://www.phpdeveloper.org/news/17166

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

DevShed: File Security and Resources with PHP

DevShed: File Security and Resources with PHP

In the fourth part of their series looking at working with the filesystem in PHP, DevShed has posted a new tutorial focusing on security and permission handling for files/resources.

These days, security is paramount to any server installation, large or small. Most modern operating systems have embraced the concept of the separation of file rights via a user/group ownership paradigm, which, when properly configured, offers a wonderfully convenient and powerful means for securing data. In this section, you’ll learn how to use PHP’s built-in functionality to review and manage these permissions.

They introduce functions like:

Sample code is also included to show how to open and close a file.

Source: http://www.phpdeveloper.org/news/17165

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

DZone.com: PHP Yaf (Yet Another Framework) Is Very Fast

DZone.com: PHP Yaf (Yet Another Framework) Is Very Fast

In this new post on DZone.com today John Esposito talks about an interesting PHP framework that has come to light lately – the Yet Another Framework, an oddly named PHP extension that provides some of the basics to build a framework-based application.

Why care about another PHP framework? especially one that’s actually called Yet Another Framework? Because Yaf isn’t just a framework. It’s a PHP extension (listed on PECL), so it’s written in C — so it’s very, very fast. How fast? Here’s a benchmark (requests/sec).

The only framework (of the list he compared) that came in faster was MicroMVC and that’s not as full-featured as the Yaf functionality is. Disregarding that, it has a huge requests/second difference between even the next on the list, CodeIgniter.

Source: http://www.phpdeveloper.org/news/17164

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>