PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 312 All time: 7,302 This week: 455Up
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
  Performance   Level  
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 14 packages by
Country: Poland Poland
Age: 42
All time rank: 2874 in Poland Poland
Week rank: 206 Up3 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Screenshots (4)  
  • sample_TypeEnforcingSourcecode.png
  • example_output.PNG
  • sample_TypeEnforcing.png
  • example_sourcecode2.PNG
  Files folder image Files (10)  
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

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 Reuses Unique User Downloads Download Rankings  
 0%1
Total:312
This week:0
All time:7,302
This week:455Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1614