PHP Classes

DATA: Access data stored in MySQL tables like arrays

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 1,327 All time: 2,914 This week: 455Up
Version License PHP version Categories
data 0.8.0GNU Lesser Genera...5.1PHP 5, Databases
Description 

Author

DATA stands for Database Access Through Arrays. This package can be used to access data stored in MySQL tables like accessing arrays. It uses SPL to implement several classes and iterators interfaces to access MySQL databases.

Examples:

$DB['test_table'][] = array(
'name' => 'first',
'value' => 'the first row'
);

foreach ($DB['test_table'] as $i => $row) {
...
}

$DB['test_table']['first']['value'] = '1st';

unset($DB['test_table']['first']);

Innovation Award
PHP Programming Innovation award nominee
April 2007
Number 8


Prize: One subscription to the PDF edition of the magazine by PHP Architect
One of the new features introduced with PHP 5 is the iterator interfaces provided by the SPL (Standard PHP Library) extension.

SPL allows applications to traverse objects using regular functions used to traverse array members.

This class provide new SPL iterators that allow applications to easily traverse data from MySQL databases using the same array traversal functions.

Manuel Lemos
Picture of Martin Alterisio
Name: Martin Alterisio <contact>
Classes: 5 packages by
Country: Argentina Argentina
Innovation award
Innovation award
Nominee: 5x

 

  Files folder image Files (50)  
File Role Description
Files folder imageDATA (34 files, 1 directory)
Accessible without login Plain text file example.php Example An usage example
Accessible without login Plain text file example.sqltypes.php Example An usage example
Accessible without login Plain text file data.lib.php Appl. Main include file of the DATA library.
Accessible without login Plain text file data.mysql5.lib.php Appl. Include to use the DATA library using a MySQL5 database.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,327
This week:0
All time:2,914
This week:455Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2594