Download the PHP package hgh/helpers without Composer

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

Helpers

This package contains all helpful methods to help on texts, arrays, objects and number.

Table of contents

Installation

To install this package, require it via the composer.

Text Helper

The text helper is a helper that changes on texts.

Text Helper available methods

Method Method Type Description Sample
toSnakeCase static This method will convert any text to snake case. camelCase to camel_case
snakeToCamel static This method will convert any text from snake case to camel case. snake_case to camelCase
snakeToPascal static This method will convert any text from snake case to pascal case. snake_case to PascalCase
className static Will extract the class name from a namespace \HGh\Test\ClassName to ClassName
remove static Search a text in another text and remove it This is a test, search for test, result This is a
removeSpaces static Remove spaces from a sting This is a test, result Thisisatest
replace static Search a text in another text and replace it This is a test, replace test with text, result This is a text
utf8 static Convert a text to utf8 -
removeNonUtf8 static Remove non UTF8 characters from a string -
removeNonAlphanumeric static Remove all nonAlphanumeric characters from a string $%asdds565 to asdds565
lowercase static Convert a string to lowe case AbsasdADK to absasdadk
uppercase static Convert a string to upper case AbsasdADK to ABSASDADK
price static Convert a number to two decimal after point 2 to 2.00

Array Helper

The text helper is a helper that changes on arrays.

Array Helper available methods

Method Method Type Description Sample
snakeIndexes static Make all indexes of array snake_case. It can be recursive or not. to
changeIndex static Change an index to another one. to

Object Helper

The text helper is a helper that changes on objects.

Object Helper available methods

Method Method Type Description Sample
snakeKeys static Make all keys of object snake_case. It can be recursive or not. to
changeKey static Change a key to another one. to

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

Loading the files please wait ....