Installation - uuur86/strobj GitHub Wiki
Installation
Requirements
- PHP 7.4 or newer (tested on 7.4 through 8.5)
- The
jsonextension
Composer
composer require uuur86/strobj:^3.0
Applications that still need the 2.x line can require uuur86/strobj:^2.1; see
Migration from 2.1 before upgrading.
Autoloading
Composer's autoloader registers the StrObj\ namespace:
require __DIR__ . '/vendor/autoload.php';
use StrObj\StringObjects;
Verifying the installation
$data = StringObjects::instance(['status' => 'ok']);
echo $data->get('status'); // ok
Next: Getting Started.