Download the PHP package rishadblack/larahelpers without Composer

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

LaraHelpers

LaraHelpers is a collection of useful helper functions for Laravel applications, designed to enhance productivity and streamline common tasks.

Installation

You can install the package via Composer. Run the following command in your Laravel project directory:

Function Documentation

This repository contains a collection of utility functions for various tasks. Below is a list of all functions along with a brief description of their purpose.

Function List

generateRandomFloat

Generates a random floating-point number within a specified range.

Parameters:

Returns: A random float number between $min and $max.

Example:

matchRouteParameter

Matches the route parameter with the provided data.

Parameters:

Returns: true if the route parameter matches; otherwise, false.

Example:

switchColLang

Switches the column name based on the application's locale.

Parameters:

Returns: The column name based on the current locale.

Example:

perPageRows

Returns an array of rows per page options.

Parameters:

Returns: An array of row options or a default array [10, 25, 50, 100, 250].

Example:

addAllField

Adds an "All" option to the provided data.

Parameters:

Returns: An array with "All" prepended to the original data.

Example:

currencySymbol

Returns the currency symbol used in the application.

Returns: A string representing the currency symbol.

Example:

numberEnToBn

Converts English numerals to Bangla numerals.

Parameters:

Returns: A string with Bangla numerals.

Example:

asset_storage

Generates the storage asset URL.

Parameters:

Returns: A URL string for the asset.

Example:

asset_favicon

Generates the favicon asset URL.

Parameters:

Returns: A URL string for the favicon asset.

Example:

asset_logo

Generates the logo asset URL.

Parameters:

Returns: A URL string for the logo asset.

Example:

asset_powered_logo

Generates the powered logo asset URL.

Parameters:

Returns: A URL string for the powered logo asset.

Example:

asset_dark_logo

Generates the dark logo asset URL.

Parameters:

Returns: A URL string for the dark logo asset.

Example:

asset_profile_picture

Generates the default profile picture asset URL.

Returns: A URL string for the profile picture asset.

Example:

numberFormatConverted

Formats a number with optional currency sign and decimal places.

Parameters:

Returns: A formatted string.

Example:

percentFormat

Formats a number as a percentage.

Parameters:

Returns: A formatted percentage string.

Example:

pointFormat

Formats a number for display with optional currency sign.

Parameters:

Returns: A formatted string.

Example:

unitFormat

Formats a number with a unit identifier.

Parameters:

Returns: A formatted string with unit.

Example:

numberFormat

Formats a number for display with optional currency sign.

Parameters:

Returns: A formatted string.

Example:

numberFormatOrPercent

Formats a number or returns a percentage.

Parameters:

Returns: A formatted string or percentage.

Example:

getPercentOfValue

Calculates the percentage of a given value.

Parameters:

Returns: The calculated percentage of the amount.

Example:

getValueOfPercent

Calculates the value based on a percentage of a given amount.

Parameters:

Returns: The calculated value based on the percentage.

Example:

getTimeFormat

Formats a given time into a specified format.

Parameters:

Returns: A formatted time string.

Example:

getTimeFormatJs

Formats a given time into a JavaScript-compatible format.

Parameters:

Returns: A JavaScript-compatible time string.

Example:

getfirstAndLastName

Returns the first and last name from a full name string.

Parameters:

Returns: An array containing the first and last names.

Example:

getFolderSize

Calculates the size of a specified folder.

Parameters:

Returns: The size of the folder in bytes.

Example:

getFormatSize

Formats a size in bytes into a more human-readable format.

Parameters:

Returns: A formatted string representing the size.

Example:

getCheckDevice

Checks the user's device type.

Returns: A string representing the device type (e.g., 'mobile', 'tablet', 'desktop').

Example:

getGenerateDepth

Generates the depth for nested structures.

Parameters:

Returns: An integer representing the depth.

Example:

convertPipeToArray

Converts a string with pipes into an array.

Parameters:

Returns: An array of values.

Example:

convertNumberToWordInEnglish

Converts a number into words in English.

Parameters:

Returns: A string representing the number in words.

Example:

getBanglaNumbers

Converts English numbers into Bangla numbers.

Parameters:

Returns: A string with Bangla numbers.

Example:

convertNumberToWordInBangla

Converts a number into words in Bangla.

Parameters:

Returns: A string representing the number in Bangla words.

Example:

generateRandomFloat

Generates a random floating-point number within a specified range.

Parameters:

Returns: A random float number between $min and $max.

Example:

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.


All versions of larahelpers with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2.0|^8.0
illuminate/support Version ~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.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 rishadblack/larahelpers contains the following files

Loading the files please wait ....