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,983 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: 80 5 in Germany Germany
Innovation award
Innovation award
Nominee: 8x

Details

oid2weid

OID 2 WEID Konverter

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

What is WEID?

https://look-up.webfan3.de/?goto=oid%3A1.3.6.1.4.1.37553.8

Usage

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

Authors

https://www.viathinksoft.com

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

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:22
This week:0
All time:9,983
This week:342

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