PHP Classes

Java and C# compatible object autoboxing for PHP: Wrap string and integer values in objects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-03-17 (4 years ago) RSS 2.0 feedStarStarStarStar 64%Total: 296 All time: 6,727 This week: 1,361Up
Version License PHP version Categories  
datatypes_autoboxing 1.2GNU Lesser Genera...5.1PHP 5, Data types
Description Author  

This package can be used to wrap string and integer values in objects.

It provides functions that create objects to store references to either strings or integer values.

It can also cache references to value objects with the same values to avoid creating needless object copies.

Innovation Award  
PHP Programming Innovation award nominee
November 2010
Number 3

Prize: One downloadable copy of PhpED Professional
In PHP integers and strings are first class data types but they are not exposed as objects.

You can have variables that represent the same value but each variable occupies a different memory space.

This package is capable of minimizing the memory used by multiple variables representing the same value by encapsulating basic data types in object references and avoid keeping multiple objects of the same value.

Manuel Lemos
Picture of Artur Graniszewski
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 13 packages by
Country: Poland Poland
Age: 33
All time rank: 3235 in Poland Poland
Week rank: 143 Up4 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

  • sample_TypeEnforcingSourcecode.png
  • sample_TypeEnforcing.png
  • example_output.PNG
  • example_sourcecode2.PNG
  Files folder image Files  
File Role Description
Plain text file variablesManager.php Class Main class
Plain text file autoboxExampleClasses.php Class Example: Wrappers for the primitive PHP datatypes
Accessible without login Plain text file autoboxExample.php Example Example script
Accessible without login Plain text file autoboxExample_All...e_Types_wrapper.php Example Example showing strong data type enforcing and implementing wrappers for all PHP primitive datatypes
Accessible without login Plain text file autoboxExample_TypeEnforcing.php Example Example script: type enforcing, mathematical operations on integer _objects_
Accessible without login Plain text file licence.txt Lic. LGPL Licence

 Version Control Reuses Unique User Downloads Download Rankings  
 0%1Total:296All time:6,727
 This week:0This week:1,361Up
User Ratings User Comments (1)  
 All time