Download the PHP package hxgf/x-utilities without Composer

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

VPHP - X-Utilities

A collection of standalone utility functions to help do things faster with PHP.

Installation

Easy install with composer:

Usage

x::email_send($parameters)

Sends a plain text or html email using the native PHP mail() function.

Messages can be sent using the Mailgun API if Mailgun credentials are available in a global settings array like this:

x::client_ip()

Returns the address of the computer making the current request.

x::url_slug($string)

Returns a lowercase URL-safe version of a given string, substituting - for spaces and punctuation.

x::url_strip($url)

Removes the protocol and trailing slashes from a given url, returning only the domain name.

x::url_validate($url)

Returns a valid URL, adding http:// if needed.

x::br2nl($string)

The opposite of nl2br(), replaces <br /> (and <br>) html tags with newline (\n) character.

x::array_encode($array)

Turns an array of strings into a single string, separated by a vertical bar (|) character.

x::array_decode($string)

Turns a string separated by a vertical bar (|) character into an array of strings.

x::console_log($input, $parameters)

Prints an array, object, or string in a stylized DOM container. Input type is automatically detected, and optional parameters can be used to customize the style of the container.

Typical usage:

With optional parameters:

x::dd($input, $parameters)

Same as console_log(), but with with a die() function called afterward. The same parameters are available for styling the container. Yes, it's kinda like Laravel's dd() method.

x::file_write($input, $target_filename, $parameters)

Appends a string, array, or object to a given file. Input type is automatically detected and converted to plain text. Optional parameters can be used to customize fopen() mode and newline behavior.

Using custom parameters:

x::error_log($input, $parameters)

Abstraction for the native PHP error_log() function, appends a timestamp with a given string, array, or object to an error_log file. Input type is automatically detected and converted to plain text.


All versions of x-utilities 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 hxgf/x-utilities contains the following files

Loading the files please wait ....