Search by

Backdrop Tools is a collection of helper classes and functions for developing themes and plugins.

Package info

github.com/backdrop-dev/tools

pkg:composer/backdrop-dev/tools

Statistics

Installs: 408

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-11-23 17:22 UTC

This package is auto-updated.

Last update: 2026-11-23 17:30:18 UTC


README

Backdrop Tools is a collection of helper classes and functions for developing plugins and themes.

Requirements

Collection

Backdrop\Tools\Collection is an ArrayObject with helper methods. Items can also be read and written as properties.

$collection = new Backdrop\Tools\Collection( [ 'one' => 1 ] );

$collection->add( 'two', 2 );
$collection->three = 3;

$collection->get( 'two' );     // 2
$collection->has( 'three' );   // true
$collection->get( 'missing' ); // null
$collection->remove( 'one' );
$collection->all();            // [ 'two' => 2, 'three' => 3 ]

Copyright and License

This project is license under GNU GPL, version 2 or higher

2019-2026. Benjamin Lu