Login   Register  
PHP Classes
elePHPant
Icontem

Java and C# compatible object autoboxing for PHP

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Artur Graniszewski
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Packages: 13 Browse all classes by Artur Graniszewski Browse all classes by
Country: Poland Poland - PHP jobs in Poland
Age: 31
All time rank: 39110 in Poland Poland
Week rank: 56 Up2 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Artur Graniszewski  >  Java and C# compatible object autoboxing for PHP  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Java and C# compatible object autoboxing for PHP
Base name: datatypes_autoboxing
Description: Wrap string and integer values in objects
Version: 1.2
PHP version: 5.1
License: GNU Lesser General Public License (LGPL)
All time users: 271 users
All time rank: 6270
Week users: 1 user
Week rank: 2173 Up
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Dependents   Applications   Related links   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes

  Files folder image Screenshots  
Sample source code
File Role Description
Accessible without login Image file sample_TypeEnforcingSourcecode.png Screen Sample source code
Accessible without login Image file example_output.PNG Screen Sample output
Accessible without login Image file sample_TypeEnforcing.png Screen Type enforcing, math operations on PHP objects!
Accessible without login Image file example_sourcecode2.PNG Screen Sample output


  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

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Perfect (100.0%)
Sufficient (66.7%)
-
Good (83.3%)
-
-
Sufficient (65.0%)
478
Month:
Not yet rated by the users

  Packages that need this class  
Class Dependency Why it is needed
Java compatible UTF-8 Data Manipulation
Optional
(required only by the java_datatypes_with_autoboxing.php file) This class provides JAVA autoboxing mechanism for the UTF-8 Strings

  Applications that use this class  
Link Description
Java compatible UTF-8 String class using autoboxing Java compatible UTF-8 Data Manipulation
Project homepage Technical description of this class
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Link to PHP.NET autoboxing RFC Link to page created by PHP core developers describing the PHP autoboxing mechanism
Project homepage Technical description of this class (english version)
Autoboxing and unboxing (Wikipedia) Description of autoboxing mechanism on Wikipedia
Project homepage (polish version) Technical description of this class (polishversion)

  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

Download all files: datatypes_autoboxing.tar.gz datatypes_autoboxing.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.