A PHP Library To Make Your Work Work Easier/Faster

Overview

Functionality.php (beta) 🔥

About ✍️

  • This Is A Php Library To Make Your Work Easier/Faster,
    You Can See Functionalty.php Website From Here
  • Project Created In 15 / 6 / 2022

Installation 📦

  • Using Composer
    composer require functionality-library/functionality.php
  • Now You Can Use Functionality.php Library In Your Project
  • Example
        require_once 'vendor/autoload.php';
        use Functionality\FunctionalityPhp\Functionality;
        
        echo Functionality::randomColor(); // Random Color

Usage 📚

  • Randoms functions
    • Functionality::randomColor() - Generate Random Color
    • Functionality::randomBoolean() - Generate Random Boolean
    • Functionality::randomNumber() - Generate Random Number
    • Functionality::randomString() - Generate Random String
    • Functionality::randomHsl() - Generate Random Hsl Color
    • Functionality::randomHexColor() - Generate Random Hex Color
  • Numbers functions
    • Functionality::getAvg(float $a, float $b) - Get Average butween two numbers
    • Functionality::isEven(float $number) - Check If Number Is Even
    • Functionality::isOdd(float $number) - Check If Number Is Odd
    • Functionality::isPrime(int $number) - Check If Number Is Prime
    • Functionality::reverseNumber(float $number) - Reverse a number (e.g. 12345 -> 54321)
  • Strings functions
    • Functionality::isPalindrome(string $string) - Check If String Is Palindrome
    • Functionality::capitalize(string $string) - Capitalize First Letter Of Words In String
    • Functionality::reverseString(string $string) - Reverse a string (e.g. abcdef -> fedcba)
  • Arrays functions
    • Functionality::filter(array $array, callable $callable) - Filter Array By Callable
    • Functionality::getFactors(int $number) - Get Factors Of Number
    • Functionality::maxArray(array $array) - Get Max Value Of Array
    • Functionality::minArray(array $array) - Get Min Value Of Array
    • Functionality::sumArray(array $array) - Get Sum Of Array
    • Functionality::randomElementFromArray(array $array) - Get Random Element From Array
    • Functionality::removeDuplicatesFromArray(array $array) - Remove Duplicates From Array
    • Functionality::shuffle(array $array) - Sort Array Randomly

To Get Started Contributing

  • First Clone The Repository

    git clone https://github.com/functionality-library/functionality.php.git
  • Then Install Packages

    composer install
  • Run Tests using phpunit

    composer run-script test
  • Feel Free To Add What You Want!

  • If there is any issue, please open an issue on GitHub

  • If you have any suggestion, please open an issue on GitHub

  • If you have any question, please open an issue on GitHub

You might also like...
WordPlate is a wrapper around WordPress. It makes developers life easier. It is just like building any other WordPress website with themes and plugins. Just with sprinkles on top.
WordPlate is a wrapper around WordPress. It makes developers life easier. It is just like building any other WordPress website with themes and plugins. Just with sprinkles on top.

WordPlate is simply a wrapper around WordPress. It makes developers life easier. It is just like building any other WordPress website with themes and plugins. Just with sprinkles on top.

Adds a compact
Adds a compact "easy-sort" mode to Repeater and Repeater Matrix, making those fields easier to sort when there are a large number of items.

Repeater Easy Sort Adds a compact "easy-sort" mode to Repeater and Repeater Matrix, making those fields easier to sort when there are a large number o

Debug with Ray to fix problems faster
Debug with Ray to fix problems faster

Debug with Ray to fix problems faster This package can be installed in any PHP application to send messages to the Ray app. The desktop app: can be us

A faster drop in replacement for bin/magento cache:clean with file watcher

"You know, hope is a mistake. If you can't fix what's broken, you'll, uh... you'll go insane." - Max Rockatansky Magento 2 Cache Clean A faster drop i

Search faster into Magento DevDocs and Magento StackExchange! 🔍⚡️
Search faster into Magento DevDocs and Magento StackExchange! 🔍⚡️

VS Code - Magento DevSearch Search faster into Magento DevDocs and Magento StackExchange! 🔍 ⚡️ Magento DevSearch is a VS Code extension that allows y

WARNING! This software is currently non-functional. - A system which makes installing Jexactyl far, far easier.
WARNING! This software is currently non-functional. - A system which makes installing Jexactyl far, far easier.

Jexactyl Assistant A system which makes installing Jexactyl far, far easier. WARNING 🚧 This software is currently in heavy alpha testing and WILL NOT

PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.

📢 Yell PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects. Requirement

Sslurp is a simple library which aims to make properly dealing with SSL in PHP suck less.

Sslurp v1.0 by Evan Coury Introduction Dealing with SSL properly in PHP is a pain in the ass and completely insecure by default. Sslurp aims to make i

This library uses GD and EXIF (optional) PHP extensions so make sure you have them installed.

simple and fast image processing class that can downscale, compress and convert images using php-gd native functions

Releases(v1.1.0)
Owner
functionality
A Library Of Functions To Make Your Work Easier/Faster
functionality
A trait to make building your own custom Laravel Model Searches a lot easier.

BrekiTomasson\LaravelModelFinder A simple trait that makes building your own custom Laravel Model Searches a lot easier and safer. It ensures that you

Breki Tomasson 3 Nov 27, 2022
A PHP package to make the Chronopost API easier to use.

Chronopost API A PHP package to make the Chronopost API easier to use. Table of Contents Requirements Installation Usage Testing Requirements PHP 7.3,

HOUIS Mathis 9 Oct 27, 2022
Parse DSN strings into value objects to make them easier to use, pass around and manipulate

DSN parser Parse DSN strings into value objects to make them easier to use, pass around and manipulate. Install Via Composer composer require nyholm/d

Tobias Nyholm 77 Dec 13, 2022
A plugin to make life easier for users who need to edit specific functions of a world and also create, rename and delete worlds quickly using commands or the world management menu.

A plugin to make life easier for users who need to edit specific functions of a world and also create, rename and delete worlds quickly using commands or the world management menu.

ImperaZim 0 Nov 6, 2022
Preload your sweet sweet code to opcache with a composer command, making your code faster to run.

Composer Preload Preload your sweet sweet code to opcache with a composer command, making your code run faster. Composer Preload is a composer plugin

Ayesh Karunaratne 197 Dec 6, 2022
Makes indexing of your Magento store around x times faster! ‼️ Maintainers wanted!

FastIndexer This module has never been used in production. No more empty results in the frontend due to a long taking reindex process! Integrates seam

Cyrill Schumacher 79 Jul 10, 2022
Secure package for WP CLI, built to provide an easier way of securing your WordPress installation

wp-cli/secure-command Official website: Hackthewp.com Manages common security aspects of WordPress. Supports nginx and Apache. Basic Usage This packag

Igor Hrcek 68 Dec 27, 2022
Make Laravel and Storyblok work together beautifully.

Use Storyblok’s amazing headless CMS in way that feels familiar to Laravel developers This package allows you to use fantastic Storyblok headless CMS

Richard Le Poidevin 47 Oct 27, 2022
PHP Parallel Lint - This tool check syntax of PHP files faster than serial check with fancier output

PHP Parallel Lint This application checks syntax of PHP files in parallel. It can output in plain text, colored text, json and checksyntax formats. Ad

PHP Parallel lint 156 Apr 24, 2022
This tool check syntax of PHP files faster than serial check with fancier output.

PHP Parallel Lint This application checks syntax of PHP files in parallel. It can output in plain text, colored text, json and checksyntax formats. Ad

PHP Parallel lint 202 Dec 22, 2022