Download the PHP package fort/php without Composer

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

Build Status Packagist Version (custom server) Packagist Downloads (custom server) GitHub

Installation

install with composer

Add the below codes in your index.php or entry point of your application;

Available PHP Functions

Table of Content

Database

To start using the database support, you must create a .env file just in the root directory of your project and set your database credentials like below

Test DB connection

Test if the databases was successfully connected

Insert Record

Insert or create a new record in your database

Update Record

Update a specific record in your database.

Transactions

Start database transactions.

Queries

Run queries to your database.

Raw Queries

Select

All

First

Where

OrWhere

Sum

Count

Max

Min

Http Requests

Post Request

Get Request

Put/Patch Request

Delete Request

PostMultipart Request

String Helpers

Str valueExist

Str contains

Str containsAll

Str after

Str afterLast

Str before

Str beforeLast

Str between

Str replace

Str charAt

Str endsWith

Str finish

Str is

The Str::is method determines if a given string matches a given pattern. Asterisks may be used as wildcard values:

Str isUuid

Str length

Str words

Str wordCount

Str limit

Str padBoth

Str padLeft

Str padRight

Str random

Str uuid

Str isAscii

Str isUuid

Str upper

Str lower

Str title

Str slug

Str snake

Str studly

Str kebab

Str mask

Str start

The Str::start method adds a single instance of the given value to a string if it does not already start with that value:

Str reverse

Str substr

Str substrCount

Str substrReplace

Str replaceFirst

Str replaceLast

Str lcfirst

Str ucfirst

Array Helpers

Arr Maximum

Arr Minimum

Arr valueExist

Checks in an array if the needle exist in the array in case-insensitive manner. @returns true if the needle exist, false otherwise.

Arr accessible

Arr whereNotNull

Arr where

Arr first

Arr last

Arr wrap

Arr add

The Arr::shuffle method randomly shuffles the items in the array:

Arr set

Arr shuffle

The Arr::shuffle method randomly shuffles the items in the array:

Arr collapse

Arr divide

The Arr::divide method returns two arrays: one containing the keys and the other containing the values of the given array:

Arr except

Arr exists

Arr flatten

Arr forget

Arr get

Arr has

Arr hasAny

Arr isAssoc

Arr prepend

Arr pluck

Arr only

Arr pull

Arr query

Arr random

SMS

To start using the SMS support, you must set the following variables in your .env file. The SMS_DRIVER can only be set to velstack or vonage. These are the supported drivers.

Send SMS

Math Helpers

Percentage

Exponential

SquareRoot

Summation

Subtraction

Division

Multiplication

Maximum

Minimum

Make sure model uses the DateFilters trait

Once the DateFilters has been implemented in your model, you may access them in your controller like below


All versions of php with dependencies

PHP Build Version
Package Version
Requires nesbot/carbon Version ^2.16
ext-pdo Version *
vlucas/phpdotenv Version ^5.4.1
ext-ctype Version *
ext-filter Version *
ext-hash Version *
ext-mbstring Version *
ext-openssl Version *
ext-session Version *
ext-tokenizer Version *
composer-runtime-api Version ^2.2
psr/simple-cache Version ^1.0|^2.0|^3.0
voku/portable-ascii Version ^2.0
ramsey/uuid Version ^4.7
symfony/var-dumper Version ^6.2
psr/container Version ^1.1.1|^2.0.1
psr/log Version ^1.0|^2.0|^3.0
symfony/error-handler Version ^6.2
symfony/finder Version ^6.2
symfony/http-foundation Version ^6.2
symfony/http-kernel Version ^6.2
symfony/mailer Version ^6.2
ext-curl Version *
vonage/client Version 4.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 fort/php contains the following files

Loading the files please wait ....