Download the PHP package baka/support without Composer

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

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version composer.lock Total Downloads License

Baka Support

A curated collection of useful PHP snippets.

Requirements

This package requires PHP 7.2 or higher.

Installation

You can install the package via composer:

The package will automatically register itself.


📚 Array

all

Returns true if the provided function returns true for all elements of an array, false otherwise.

any

Returns true if the provided function returns true for at least one element of an array, false otherwise.

deepFlatten

Deep flattens an array.

drop

Returns a new array with n elements removed from the left.

findLast

Returns the last element for which the provided function returns a truthy value.

findLastIndex

Returns the index of the last element for which the provided function returns a truthy value.

flatten

Flattens an array up to the one level depth.

groupBy

Groups the elements of an array based on the given function.

hasDuplicates

Checks a flat list for duplicate values. Returns true if duplicate values exists and false if values are all unique.

head

Returns the head of a list.

last

Returns the last element in an array.

pluck

Retrieves all of the values for a given key:

pull

Mutates the original array to filter out the values specified.

reject

Filters the collection using the given callback.

remove

Removes elements from an array for which the given function returns false.

tail

Returns all elements in an array except for the first one.

take

Returns an array with n elements removed from the beginning.

without

Filters out the elements of an array, that have one of the specified values.

orderBy

Sorts a collection of arrays or objects by key.


📜 String

endsWith

Check if a string is ends with a given substring.

firstStringBetween

Returns the first string there is between the strings from the parameter start and end.

upperResttrue``` to convert to uppercase.

contains

Check if a word / substring exist in a given string input. Using strpos to find the position of the first occurrence of a substring in a string. Returns either true or false

License

This project is licensed under the MIT License - see the License File for details


Thanks

Thanks to appzcoder for the snippets!


All versions of support with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 baka/support contains the following files

Loading the files please wait ....