Download the PHP package pataar/smartstring without Composer

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

SmartString

Installation

Using Composer:

Usage

Creating a SmartString object

Either do

Or

Using a SmartString object

After creating your SmartString, you can use several chainable methods to manipulate the string.

Some examples:

Functions

toUpper()

Creates an uppercase version of the string.

toLower()

Creates an lowercase version of the string.

Trim()

Trims the string. So removes any trailing whitespaces and spaces.

printme()

Prints the string.

indexOf($input)

Returns the index of a certain $input string.

substring($start, $length)

Creates a substring of an existing string.

toMd5()

Creates an MD5 hash of the string.

toMd5WithSalt($salt)

Creates an salted MD5 hash of the string. Using both a prefix and suffix containing the given $salt.

encodeB64() || decodeB64()

Encodes or decodes a B64 string.

charAt($index)

Tells you on which index a certain character is placed.

equals($string)

Returns when the $string matches the $smartString.

prefix($prefix)

Adds a $prefix to the string.

suffix($suffix)

Adds a $suffix to the string.

concat($string)

Concats a string.

replace($search, $replacement)

Replace a string with an other string.

replacePattern($pattern, $replacement)

Replaces a pattern.

remove($string)

Remove a string

length()

Returns the length of the string.

normalize()

Normalizes the string. Making it URL/slug compatible.


All versions of smartstring 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 pataar/smartstring contains the following files

Loading the files please wait ....