Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney:
PSR-7 Request and Method Utilities
Jan 27, 2017 @ 09:52:37

Matthew Weier O'Phinney has written up a new post for his site covering PSR-7 request and method utilities and a package that contains some handy tools to help with just that.

Some time ago, a few folks floated the idea of creating a utility repository related to the PSR-7 psr/http-message package, but containing some useful bits such as constants for HTTP request methods and status codes.

Six months ago, we released it... but didn't publicize it. I remembered that fact today while writing some unit tests that were utilizing the package, and thought I'd finally write it up.

The package is fig/http-message-util, and is available via Composer and Packagist.

He goes on to describe the two interfaces it provides (RequestMethod and StatusCode) and what they're designed to help with. He includes an example of middleware written using these interfaces, defining allowed methods and returning a "method not allowed" status code - based on a constant - in the response message object. He ends the post with two quick points to note in this example: how the interfaces are used and his use of aliases to make using the interfaces just a bit shorter.

tagged: psr7 middleware request method utility package httpmessageutil tutorial

Link: https://mwop.net/blog/2017-01-26-http-message-util.html

Jakob Westhoff's Blog:
Periodic - A PHP based cron utility
Jan 30, 2009 @ 09:33:54

Jakob Westhoff has posted about a new scheduler utility that he an Kore Nordmann worked up to fill a need they had for a "recurring management system" for some of their projects.

Periodic is a fully unit tested PHP based task runner. It is supposed to deliver a basic implementation for managing all kinds of recurring tasks and events inside your web application. It has been designed with having all kinds of different web hosting environments in mind. It is capable of running on most shared hosting systems as well as root servers.

They even went so far as to write up a design document for the implementation. You can grab the latest version of the script off of their subversion server: svn://arbitracker.org/arbit/projects/periodic

tagged: periodic cron utility recurring task management cronjobiterator

Link:

Community News:
phpBB & phpMyAdmin Win at SourceForce Community Choice Awards
Aug 06, 2007 @ 11:06:00

As mentioned by the php|architect website, the results are in for the Community Awards competition SourceForge was hosting for the year and two PHP-based projects made the list - phpBB and phpMyAdmin.

The Community Choice Awards are over! The SourceForge.net 2007 Community Choice Awards provided you an opportunity to recognize projects that stand taller than the rest. Everybody got to vote, and everybody’s vote counted equally. The winning projects, each with superlative quality, productivity, and ingenuity, represent the cream of the crop on SourceForge.net.

phpBB made the cut in the "Best Project for Communications" category and phpMyAdmin won in the "Best Tool or Utility for SysAdmins". Congratulations to both projects on your achievement!

tagged: sourceforge community choice award communication sysadmin utility sourceforge community choice award communication sysadmin utility

Link:

Community News:
phpBB & phpMyAdmin Win at SourceForce Community Choice Awards
Aug 06, 2007 @ 11:06:00

As mentioned by the php|architect website, the results are in for the Community Awards competition SourceForge was hosting for the year and two PHP-based projects made the list - phpBB and phpMyAdmin.

The Community Choice Awards are over! The SourceForge.net 2007 Community Choice Awards provided you an opportunity to recognize projects that stand taller than the rest. Everybody got to vote, and everybody’s vote counted equally. The winning projects, each with superlative quality, productivity, and ingenuity, represent the cream of the crop on SourceForge.net.

phpBB made the cut in the "Best Project for Communications" category and phpMyAdmin won in the "Best Tool or Utility for SysAdmins". Congratulations to both projects on your achievement!

tagged: sourceforge community choice award communication sysadmin utility sourceforge community choice award communication sysadmin utility

Link:

AlternateInterior.com:
Communicating with threads in PHP
May 03, 2007 @ 13:38:16

Continuing on from a previous post on multi-threading in PHP, Brian Bosh is back with something a bit more developed that will allow for communication between the threads as well.

Earlier this week, I suggested PHP could be multithreaded. The sample I provided was very simple and at least one reader quickly wondered how to communicate with threads. If you haven't already, take a look at part 1 to get some basic information about threads in PHP.

It took a bit longer to get that part working that simple threads, but as of now, I have a functional prototype of an HVAC thread.

The post is broken up into five different files to make things work:

  • an overall class for the main functionality (their example of running the heater or AC)
  • a class to create and set up a thread
  • a "thready utility" class to handle the response from a thread
  • a thread library to handle creation/interaction/etc
  • the example file of the system in use
Following the code, he gives a nice explanation of how things work and how they all fit together.

tagged: thread communication class tutorial instance utility thread communication class tutorial instance utility

Link:

AlternateInterior.com:
Communicating with threads in PHP
May 03, 2007 @ 13:38:16

Continuing on from a previous post on multi-threading in PHP, Brian Bosh is back with something a bit more developed that will allow for communication between the threads as well.

Earlier this week, I suggested PHP could be multithreaded. The sample I provided was very simple and at least one reader quickly wondered how to communicate with threads. If you haven't already, take a look at part 1 to get some basic information about threads in PHP.

It took a bit longer to get that part working that simple threads, but as of now, I have a functional prototype of an HVAC thread.

The post is broken up into five different files to make things work:

  • an overall class for the main functionality (their example of running the heater or AC)
  • a class to create and set up a thread
  • a "thready utility" class to handle the response from a thread
  • a thread library to handle creation/interaction/etc
  • the example file of the system in use
Following the code, he gives a nice explanation of how things work and how they all fit together.

tagged: thread communication class tutorial instance utility thread communication class tutorial instance utility

Link:

PHPBuilder.com:
CSVtoXLS: A Utility to Convert CSV data into XLS Spreadsheets
Apr 23, 2007 @ 08:38:00

On the PHPBuilder.com site today, they spotlight a handy tool that can be used to translate CVS data into an XLS spreadsheet quickly and easily.

CSVtoXLS is a utility that is used to convert CSV data into business class XLS spreadsheet files, and is compatible with OpenOffice 2.0 Calc and Excel 2000. The Spreadsheet_Excel_Writer module provides for a high level of formatting and also offers formulas. CSVtoXLS.php takes advantage of those features and provides meaningful formatting and a simple Column SUM is automatically generated at the bottom of any Decimal Column.

The utility is simple to use - they give you the command to execute and how to format your CVS data for optimal results. There's also some simple installation steps and a sample test script to get you started.

tagged: xls cvs data spreadsheets cvstoxls utility download xls cvs data spreadsheets cvstoxls utility download

Link:

PHPBuilder.com:
CSVtoXLS: A Utility to Convert CSV data into XLS Spreadsheets
Apr 23, 2007 @ 08:38:00

On the PHPBuilder.com site today, they spotlight a handy tool that can be used to translate CVS data into an XLS spreadsheet quickly and easily.

CSVtoXLS is a utility that is used to convert CSV data into business class XLS spreadsheet files, and is compatible with OpenOffice 2.0 Calc and Excel 2000. The Spreadsheet_Excel_Writer module provides for a high level of formatting and also offers formulas. CSVtoXLS.php takes advantage of those features and provides meaningful formatting and a simple Column SUM is automatically generated at the bottom of any Decimal Column.

The utility is simple to use - they give you the command to execute and how to format your CVS data for optimal results. There's also some simple installation steps and a sample test script to get you started.

tagged: xls cvs data spreadsheets cvstoxls utility download xls cvs data spreadsheets cvstoxls utility download

Link:

WebDevLogs:
ClickHeat - PHP+JS heatmap
Dec 27, 2006 @ 17:35:00

WebDevLogs.com points out a handy tool for those site owners out there that want to see what location on their site is getting the most use - ClickHeat.

Heatmap suddenly became popular when webmasters want to know where did the user click or look at. Websites like Crazy Egg, provides a heatmap generation system for webmasters. But most heatmap costs more than average adsense supported website can earn, those sites need a alternative.

ClickHeat requires PHP (5.1.6 and higher) with GD enabled to work. The post includes a sample image to show you what the end result looks like.

tagged: clickheat heatmap click javascript utility download clickheat heatmap click javascript utility download

Link:

WebDevLogs:
ClickHeat - PHP+JS heatmap
Dec 27, 2006 @ 17:35:00

WebDevLogs.com points out a handy tool for those site owners out there that want to see what location on their site is getting the most use - ClickHeat.

Heatmap suddenly became popular when webmasters want to know where did the user click or look at. Websites like Crazy Egg, provides a heatmap generation system for webmasters. But most heatmap costs more than average adsense supported website can earn, those sites need a alternative.

ClickHeat requires PHP (5.1.6 and higher) with GD enabled to work. The post includes a sample image to show you what the end result looks like.

tagged: clickheat heatmap click javascript utility download clickheat heatmap click javascript utility download

Link: