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    
Last Updated Ratings Unique User Downloads Download Rankings
2019-11-13 (9 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 22 All time: 9,993 This week: 342Up
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: 263 Up11 in Germany Germany Up
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 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 README.md 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  
 100%
Total:22
This week:0
All time:9,993
This week:342Up

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