Download the PHP package weew/helpers-string without Composer

On this page you can find all versions of the php package weew/helpers-string. 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 helpers-string

String helpers

Build Status Test Coverage Version Licence

Table of contents

Installation

composer install weew/helpers-string

Introduction

This tiny library provides various helper functions to deal with common string manipulation related problems.

Functions

s

Simple helper to format strings. Supports placeholders like :key and %s.

string s(string $format, mixed $args [, mixed $...])

str_starts_with

Check if a string starts with the given sequence.

bool str_starts_with(string $string, string $search [, bool $caseSensitive = false])

str_ends_with

heck if a string ends with the given sequence.

bool str_ends_with(string $string, string $search [, bool $caseSensitive = false])

url

Combine multiple strings to a url. This function makes sure the pieces are properly glued together with a / and eliminates all //, except after the protocol.

string url(string $paths [, $...])

path

Combine multiple strings to a path. Glues pieces together with the proper directory separator and eliminates all // or \\.

string path(string $paths [, $...])

get_type

Get type of a value. Returns values like int, string, function. Objects will return its class name.

string get_type(mixed $abstract)

str_snake_case

Convert string to snake_case.

string str_snake_case(string $string)

str_studly_caps

Convert string to StudlyCase.

string str_studly_caps(string $string [, array $delimiters = ['-', '_']])

str_camel_case

Convert a string to camelCase.

string str_camel_case(string $string [, array $delimiters = ['-', '_']])

str_random

Generate a random alphanumeric string. Works only with even numbers.

string str_random([int $length = 10])

str_explode

Split a string by one or multiple delimiters. Works the same way as the explode function, but allows several delimiters.

string str_explode(string $string, string|array $delimiter [, int $limit = PHP_INT_MAX])

uuid

Generate a v4 uuid.

string uuid([string $prefix = null, int $length = 36])

uuid_format

Format string as a v4 uuid.

string uuid_format(string $string [, string $prefix = null, int $length = null])

simple_uuid

Generate a uuid of a simpler format.

string simple_uuid()

format_xml

Format an xml string.

string format_xml($string)


All versions of helpers-string with dependencies

PHP Build Version
Package Version
No informations.
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 weew/helpers-string contains the following files

Loading the files please wait ....