Download the PHP package builtnorth/wp-utility without Composer

On this page you can find all versions of the php package builtnorth/wp-utility. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-utility

WP Utility

A comprehensive WordPress utility library providing reusable components, helpers, and utilities for modern WordPress development.

Requirements

Installation

Install via Composer:

Basic Setup

In your plugin or theme, initialize WP Utility:

Components

Components provide reusable UI elements with consistent APIs.

AccessibleCard

Creates accessible card components with proper ARIA attributes:

Breadcrumbs

Generates semantic breadcrumb navigation:

Filters:

Button

Renders flexible button or link elements:

Filters:

Screen reader text:

Image

Advanced image rendering with responsive sizes:

Pagination

Generates accessible pagination for WordPress queries:

Filters:

Utilities

Utilities provide data processing and retrieval functions.

ArchiveUrl

Handles conversion of pretty permalinks to query string URLs for archive pages:

CountryList

Returns an array of countries with ISO codes:

GetTerms

Renders terms for a post:

GetTitle

Retrieves appropriate page title across different WordPress contexts:

LazyLoadFirstBlock

Controls lazy loading behavior for blocks:

Filter:

ReadingTime

Calculates estimated reading time:

Filter:

StateList

Returns an array of US states:

Helpers

Helpers provide utility functions for common tasks.

EscapeSvg

Safely escapes SVG content for output:

Setup

Setup classes handle WordPress configuration and initialization.

ImageSetup

Configures custom image sizes and removes WordPress defaults.

Manual Initialization

Default Image Sizes

Filters

Example: Custom Image Sizes

Method Naming Conventions

All components, utilities, and helpers support multiple naming conventions:

Backward Compatibility

The library maintains backward compatibility through class aliases:

Testing

Run the test suite:

Contributing

See CONTRIBUTING.md for details on how to contribute to this project.

License

This package is licensed under the GPL version 2 or later. See LICENSE.md for details.

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

Use of this library is at your own risk. The authors and contributors of this project are not responsible for any damage to your website or any loss of data that may result from the use of this library.

While we strive to keep this library up-to-date and secure, we make no guarantees about its performance, reliability, or suitability for any particular purpose. Users are advised to thoroughly test the library in a safe environment before deploying it to a live site.

By using this library, you acknowledge that you have read this disclaimer and agree to its terms.


All versions of wp-utility with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package builtnorth/wp-utility contains the following files

Loading the files please wait ...