Download the PHP package moccalotto/stringy without Composer

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

Stringy

Build Status

Easy, powerful and fluent string handling

Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on moccalotto/stringy to your project's composer.json file.

This can be done via composer:

Documentation

The Stringy object is immutable. This means that all operations that return a new Stringy instance This means that you will not have to clone the object if you need to do two different, branching operations on a given string.

On the other hand, it is quite likely that you cannot identity-compare two stringy objects because they are often very short-lived. In cases where you need to check if two stringy objects contain the same string, we suggest using the is() method. See the example below:

Constructors

Normal constructor.

Static factory.

Helper factory function.

Create a random string.

Get the content string.

String comparison

Length (characters)

Size (bytes)

Position of substring

Getting words and characters from the string.

You can get individual characters via the php array accessor language construct like so:

Map/transform the string

Example:

Fetch a substring

Fetch segments of a string based on searches.

Fetch the part of the string that comes after a given search term.

Fetch the part of the string that comes before a given search term.

Fetch the part of the string that resides between two search terms.

Remove parts of the string based on search terms.

Remove the part of the string that comes after the given search term.

Remove the part of the string that comes before the given search term.

Repetition

Repeating a string

Add padding

Remove Padding

Appending and prepending

Adjust Casing

Exploding and imploding

Replace and remove

Escaping

Formatting


All versions of stringy with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
behat/transliterator Version ^1.1
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 moccalotto/stringy contains the following files

Loading the files please wait ....