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

Recommend this page to a friend!
  Info   Documentation   View files (4)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-11-13 (8 months ago) Not yet rated by the usersTotal: 22 All time: 9,985 This week: 342
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: 24 packages by
Country: Germany Germany
Age: 41
All time rank: 114675 in Germany Germany
Week rank: 84 4 in Germany Germany
Innovation award
Innovation award
Nominee: 8x



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'); 


File Role Description
src (1 file)
composer.json Data Auxiliary data
LICENSE Lic. License text Doc. Documentation

  Files  /  src  
File Role Description
   WeidOidConverter.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,985
This week:342

For more information send a message to info at phpclasses dot org.