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.
Informations about the package php
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
- Connect
- Insert
- Update
- Transactions
- Queries
- Where
- All
- Sum
- Max
- Min
- First
- orWhere
-
Http Requests
- Post Request
- Get Request
- Put / Patch Request
- Delete Request
- Multipart Request
-
String
- 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
- 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
- Str reverse
- Str substr
- Str substrCount
- Str substrReplace
- Str replaceFirst
- Str replaceLast
- Str lcfirst
- Str ucfirst
-
Array
- Arr Maximum
- Arr Minimum
- Arr valueExist
- Arr Accessible
- Arr Where
- Arr First
- Arr Last
- Arr Wrap
- Arr Add
- Arr Set
- Arr Shuffle
- Arr Collapse
- Arr Divide
- Arr Except
- Arr Exists
- Arr Flatten
- Arr Forget
- Arr Get
- Arr Has
- Arr hasAny
- Arr isAssoc
- Arr Prepend
- Arr PLuck
- Arr Pull
- Arr Query
- Arr Random
-
SMS
- sendSMS
- Math
- Percentage
- Exponential
- Square Root
- Maximum
- Minimum
- Sum
- Sub
- Divide
- Multiply
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
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