Support
The mantle-framework/support package provides a set of classes and traits that
can be used to extend the functionality of your classes/application. This
package doesn't require the rest of the framework in anyway and is a great
addition to any WordPress project.
Installationโ
You can install the package via Composer:
composer require mantle-framework/support
Featuresโ
The following are features included in the mantle-framework/support package:
๐๏ธ Classname
A classname helper function for generating CSS class names based on various conditions and inputs.
๐๏ธ Collections
{/ Collection methods should be added in alphabetical order /}
๐๏ธ Conditionable
Conditionable is a trait that provides a way to conditionally call a closure
๐๏ธ Helpers
General helpers for development.
๐๏ธ Hookable
Hookable is a trait that will automatically register methods on your class with
๐๏ธ HTML Manipulation
The HTML class provides methods to query, manipulate, and assert against HTML
๐๏ธ Macroable
Macros allow you to add methods to classes from outside the class. This is
๐๏ธ Mixed Options/Meta Data
Handle mixed data types in a type-safe manner for options and object metadata.
๐๏ธ Pipeline
Execute a series of tasks in a specific order using the pipeline pattern.
๐๏ธ Singleton
A singleton is a class that can only be instantiated once. It is often used to
๐๏ธ Stringable
The Stringable class exists in the Mantle\Support namespace and is used to create a stringable object from a string or a stringable object.
๐๏ธ URI Manipulation
Manipulate and work with URIs using Mantle's fluent URI class and helpers