Download the PHP package jn-devops/common without Composer

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

Homeful Common Package

The Homeful\Common package is a utility package that contains reusable helpers, constants, enumerations, and abstract types used across the Homeful system. It aims to promote consistency and reduce duplication of logic in other domain-specific packages such as Mortgage, Payment, Property, and Borrower.


๐Ÿ“ฆ Contents


๐Ÿงฐ Utilities

documents_path(?string $path = null): string

Returns the path to the /resources/documents directory.


formatted_age(DateTime $born, ?DateTime $reference = null): string

Returns a human-readable age string based on birthdate.


doc_stamps(mixed $value): float

Returns the documentary stamp fee based on property value.


filter_trim_recursive_array(array $array): array

Trims strings and filters empty values recursively in nested arrays.


dot_shift(&$dot_notation): string

Shifts off the first key in a dot notation string.


titleCase(?string $text, array $exclusions = []): string

Applies Str::title() but preserves Roman numerals and exceptions.


validateJson(string $json): bool

Returns true if a valid JSON string.


resolveOptionalCollection(DataCollection|Optional|null $collection): Collection

Handles resolution of Spatie DataCollection and Optional.


array_when(array $array, $condition, callable $callback): array

Conditionally apply a transformation on an array.


convertNumberToWords(float $value): string

Converts a float value to words.


๐Ÿ“š Core Classes

Homeful\Common\Classes\Input

A collection of constants used for data keys in form input and parameter arrays. Examples include:

Usage:


Homeful\Common\Classes\Assert

A collection of constants used to assert derived or calculated values in computations:

Used commonly in unit tests:


๐Ÿงฎ AmountCollectionItem

Base class representing any item with:

Used as a base for:


๐Ÿ“ˆ Enumerations

UploadFile

Maps file-related attributes to suffixes for Media Library collections.


WorkArea

Represents whether a user operates in a Highly Urbanized City or Region.


โœ… Example Usage


๐Ÿ“‚ Path Resolution


๐Ÿงช Testing Helpers

Used extensively in test scripts to:


Behold, a new you awaits. โœจ


All versions of common with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0||^11.0
propaganistas/laravel-phone Version ^5.3
spatie/laravel-data Version ^4.13
spatie/laravel-package-tools Version ^1.16
spatie/laravel-schemaless-attributes Version ^2.5
whitecube/php-prices Version ^3.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 jn-devops/common contains the following files

Loading the files please wait ....