Section A.30. Tools and Utilities


A.30. Tools and Utilities

Tools and Utilities for PHP or written in PHP

A.30.1. crack

Repository: - License: Artistic -

"Good Password" Checking Utility: Keep your users' passwords reasonably safe from dictionary based attacks

A.30.1.1 Description

This package provides an interface to the cracklib (libcrack) libraries that come standard on most unix-like distributions. This allows you to check passwords against dictionaries of words to ensure some minimal level of password security.

The crack extension requires cracklib (libcrack) 2.7, some kind of word dictionary, and the proper header files (crack.h and packer.h) to build.

A.30.2. fann

Repository: - License: PHP -

Artificial neural networks

A.30.2.1 Description

Fann (fast artificial neural network library) implements multilayer feedforward networks with support for both fully connected and sparse connected networks.

A.30.3. PECL_Gen

Repository: PECL - License: PHP - By Hartmut Holzgraefe (lead)

Tool to generate PECL extensions from an XML description

A.30.3.1 Description

PECL_Gen (formerly known as ext_skel_ng) is a pure PHP replacement for the ext_skel shell script that comes with the PHP 4 source. It reads in configuration options, function prototypes and code fragments from an XML description file and generates a complete ready-to-compile PECL extension.

A.30.4. PhpDocumentor

Repository: - License: PHP License -

The phpDocumentor package provides automatic documenting of php api directly from the source.

A.30.4.1 Description

The phpDocumentor tool is a standalone auto-documentor similar to JavaDoc written in PHP. It differs from PHPDoc in that it is MUCH faster, parses a much wider range of php files, and comes with many customizations including 11 HTML templates, windows help file CHM output, PDF output, and XML DocBook peardoc2 output for use with documenting PEAR. In addition, it can do PHPXref source code highlighting and linking.

Features (short list):

  • output in HTML, PDF (directly), CHM (with windows help compiler), XML DocBook

  • very fast

  • web and command-line interface

  • fully customizable output with Smarty-based templates

  • recognizes JavaDoc-style documentation with special tags customized for PHP 4

  • automatic linking, class inheritance diagrams and intelligent override

  • customizable source code highlighting, with phpxref-style cross-referencing

  • parses standard README/CHANGELOG/INSTALL/FAQ files and includes them directly in documentation

  • generates a todo list from @todo tags in source

  • generates multiple documentation sets based on @access private, @internal and {@internal} tags

  • example php files can be placed directly in documentation with highlighting and phpxref linking using the @example tag

  • linking between external manual and API documentation is possible at the sub-section level in all output formats

  • easily extended for specific documentation needs with Converter

  • full documentation of every feature, manual can be generated directly from the source code with "phpdoc -c makedocs" in any format desired.

  • current manual always available at http://www.phpdoc.org/manual.php

  • user .ini files can be used to control output, multiple outputs can be generated at once

A.30.5. SPL

Repository: PECL - License: PHP - By Marcus Boerger (lead)

Standard PHP Library

A.30.5.1 Description

This is an extension that aims to implement some efficient data access interfaces and classes. You'll find the classes documented using php code in the file spl.php or in the corresponding .inc file in the examples subdirectory. Based on the internal implementations or the files in the examples subdirectory there are also some .php files to experiment with.

The .inc files are not included automatically because the are sooner or later intergrated into the extension. That means that you either need to put the code of examples/autoload into your autoprepend file or that you have to point your ini setting auto_prepend_file to this file.

1) Iterators

SPL offers some advanced iterator algorythmns: interface RecursiveIterator implements Iterator class RecursiveIteratorIterator implements Iterator abstract class FilterIterator implements Iterator class ParentIterator extends FilterIterator implements RecursiveIterator

2) Directories

SPL offers two advanced directory classes. class DirectoryIterator implements Iterator class RecursiveDirectoryIterator extends DirectoryIterator implements RecursiveIterator

A.30.6. Valkyrie

Repository: - License: PHP -

Valkyrie validation extension

A.30.6.1 Description

This extension makes validating POST and GET parameters easier, through the use of a single XML file for declaring all parameters to be received by all files of an application. See http://www.xavier-noguer.com/valkyrie.html for details.



    PHP 5 Power Programming
    PHP 5 Power Programming
    ISBN: 013147149X
    EAN: 2147483647
    Year: 2003
    Pages: 240

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net