Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A PHP Library To Make Your Work Work Easier/Faster

License

Notifications You must be signed in to change notification settings

functionality-library/functionality.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.