Download the PHP package peterujah/php-functions without Composer

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

php-functions

Wrapped all basic reusable php function which is always useful while working on other project. This class might also be useful to beginners

This class provides general-purpose PHP functions to process several functions, it can perform several types of manipulation of string values and other executions.

Currently, it can:

Installation

Installation is super-easy via Composer:

Usages

Or extend the class and create your own new function like below.

And call initialize your custom class

Available Static Methods

Make a random string/number

Make a time ago from php timestamp, returns string

Generate a uuid string, returns string

Verify a uuid string return true or false

Verify email address is valid or not return true or false

Create a password hash key

Verify a password against hash key

Check password strength

Extract main domain name from subdomain

Calculate items average rating point

Format number to money

Discount from an (int, float, double) value by percentage

Increase interest of an (int, float, double) value by percentage

Fixed/Round a number

Randome number using min and max

Create a tag/badge from array

Create a button tag/badge from array

Returns user ip address

List time hours, returns array

Secure/format user input based on required data type

Formats Convert string characters to HTML entities

Generate UPC product id

Generate EAN13 id

Copy files and folder to a new directory

Copy files and folder to a new directory

Truncate text based on length

Base64 encode string for url passing

Base64 decode encoded url encoded string

Mask email address

Mask string by position

Determine password strength, if it meet all basic password rules such as

  1. Does password meet the the minimum and maximum length?
  2. Does password contain numbers?
  3. Does password contain uppercase letters?
  4. Does password contain lowercase letters?
  5. Does password contain special characters?

Deletes files and folders

Write new log line file

Save log a short hand replace parameter in Functions::writeLog

Find log file

Stripes unwanted characters from string and display text in new line in textarea


All versions of php-functions with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0 || ^8.0
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 peterujah/php-functions contains the following files

Loading the files please wait ....