PHP Classes

PHP OID 2 Weid: Convert identifiers between OID and WEID formats

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 23 All time: 10,460 This week: 222Up
Version License PHP version Categories
oid2weid 1.0MIT/X Consortium ...5PHP 5, Conversion
Description Author

This class can convert identifiers between OID and WEID formats.

It can take a string for an object identifier as an OID and converts it to the WEID format. The conversion can take optional parameters to changed the namespace and the base values.

The class can also do the opposite, i.e. take an identifier in WEID format and convert back to the OID format.

Picture of Till Wehowski
  Performance   Level  
Name: Till Wehowski <contact>
Classes: 27 packages by
Country: Germany Germany
Age: 43
All time rank: 110470 in Germany Germany
Week rank: 198 Up6 in Germany Germany Up
Innovation award
Innovation award
Nominee: 9x



OID 2 WEID Konverter

Converts an OID to WEID or a WEID to an OID.

What is WEID?


$oid = '';
$weid = \WeidOidConverter::oid2weid($oid); // weid:9-1
$oid2 = \WeidOidConverter::weid2oid($weid);
print_r(($oid ===$oid2) ? 'OK' : 'ERROR'); 


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file WeidOidConverter.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,460
This week:222Up
For more information send a message to info at phpclasses dot org.