Download the PHP package lucatume/wp-utils without Composer

On this page you can find all versions of the php package lucatume/wp-utils. 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-utils

WordPress utilities

A small set of utilities to speed up WordPress development.

tad_Script

A utility class that will make dealing with script and style suffix a breeze. Depending on the SCRIPT_DEBUG constant it will try to enqueue the minified or non minified version of the script or style.

$path = get_stylesheet_directory_uri() . '/assets/css/theme_style.css';
$debugDependantPath = tad_Script::suffix($path);

wp_enqueue_style('theme-style', $debugDependantPath);

tad_Str(ings)

Will make string conversion to go from one naming convention to another.

$string = 'some_name_here';

// someNameHere
$out = tad_Str::camelBack($string);
// some-name-here
$out = tad_Str::hyphen($string);
// some_name_here
$out = tad_Str::underscore($string);
// SomeNameHere
$out = tad_Str::camelCase($string);
// some/name/here (some\name\here on Win)
$out = tad_Str::toPath($string);

it also packs some methods to split strings into lines on a char or word basis with html tags preservation.

$in = "lorem ipsum some other stuff here"

// lorem ipsum some other...
$out = tad_Str::atMostChars($in, 25, '...');

// <span class="line">lorem ipsum</span>
// <span class="line">some other</span>
// <span class="line">stuff here</span>
$out = tad_Str::splitLinesByWords($in, 2);

$in = 'some words are longer than others'

// <span class="line">some words are longer</span>
// <span class="line">than others</span>
$out = tad_Str::splitLinesByChars($in, 25);

tad_Arr(ays)

Array utilities.

tad_JsObject

A quasi WordPress specific set of functions meant to make printing JavaScript objects on the page easy. The class will take care to print objects containing callback functions too.

$in = array(
    'value' => 'hello there',
    'callback' => 'function(){alert("hello there");}'
    );

$out = tad_JsObject::on($in)->getOut();

// or print on the page in WordPress
tad_JsObject::on($in)->localize();

Changelog


All versions of wp-utils with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2.0
lucatume/tdd-helpers Version 2.*
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 lucatume/wp-utils contains the following files

Loading the files please wait ....