oranfry/obex

There is no license information available for the latest version (2.4.1) of this package.

Maintainers

Details

github.com/oranfry/obex

Source

Issues

Installs: 847

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/oranfry/obex

2.4.1 2025-02-03 22:43 UTC

This package is auto-updated.

Last update: 2025-10-04 02:33:19 UTC


README

Installation

cd /path/to/project
composer require oranfry/obex

Examples

use obex\Obex;

require 'vendor/autoload.php';

$cats = Obex::from([
    (object) [
        'name' => 'Misty',
        'nickname' => 'Moo',
        'likes' => (object) ['favourite' => 'Beef', 'other' => ['Venison']],
    ],
    (object) [
        'name' => 'Amber',
        'nickname' => 'Liu',
        'likes' => (object) ['favourite' => 'Veal', 'other' => ['Turkey']],
    ],
]);

echo $cats
    ->find('name', 'is', 'Amber')
    ->nickname; // Liu

echo $cats
    ->filter('->likes->favourite', 'is', 'Beef')
    ->first()
    ->name; // Misty