Download the PHP package roots/support without Composer
On this page you can find all versions of the php package roots/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package support
Support
General-purpose helper functions used across Roots WordPress projects.
Support us
Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord.
Requirements
- PHP 5.6+
Installation
Helpers
This package autoloads helpers.php and provides:
Roots\env($key, $default = null)
Laravel-compatible environment lookup.
Deprecated when\Illuminate\Support\Envis available (it delegates there automatically).Roots\value($value)
Returns$value()if the value is a closure, otherwise returns the value unchanged.Roots\add_filters(iterable $filters, $callback, $priority = 10, $args = 2)
Registers one callback across many filter hooks.Roots\remove_filters(iterable $filters, $callback, $priority = 10)
Removes one callback across many filter hooks.Roots\add_actions(iterable $actions, $callback, $priority = 10, $args = 2)
Alias ofadd_filters.Roots\remove_actions(iterable $actions, $callback, $priority = 10)
Alias ofremove_filters.Roots\wp_die($message, $subtitle = '', $title = '', $footer = '')
Wrapper around WordPresswp_die()with Roots-flavored defaults.
Usage
Community
Keep track of development and community news.
- Join us on Discord by sponsoring us on GitHub
- Join us on Roots Discourse
- Follow @rootswp on Twitter
- Follow the Roots Blog
- Subscribe to the Roots Newsletter
All versions of support with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package roots/support contains the following files
Loading the files please wait ...