Download the PHP package jinomdeveloper/helpers without Composer

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

Jinom Helpers

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Laravel package that provides useful utility functions for Indonesian developers. This package includes tax calculation services and Indonesian Rupiah currency formatting helpers, making it easier to handle financial calculations in Indonesian web applications.

Perfect for e-commerce applications, invoicing systems, or any Laravel project that needs to handle Indonesian tax calculations and currency formatting.

Features

Installation

You can install the package via composer:

The package will automatically register itself via Laravel's package discovery feature.

Usage

Tax Calculations

The package provides a comprehensive tax calculation service that handles Indonesian PPN (11% tax rate).

Tax Inclusive Calculations (Price includes tax)

When you have a price that already includes tax and want to break it down:

Tax Exclusive Calculations (Price excludes tax)

When you have a base price and want to add tax:

Currency Formatting

Format numbers to Indonesian Rupiah currency format:

Number to Words (Terbilang)

Convert numbers to Indonesian words:

Currency String to Number

Parse Indonesian currency strings back to numbers:

Phone Number Formatting

Format Indonesian phone numbers to E.164 international format:

Using Without Facade

You can also use the classes directly:

Practical Examples

E-commerce Product Pricing

Customer Form Processing

Invoice Generation

API Reference

Helpers Class

The main entry point for all helper functions.

Methods

tax(float|int $total, bool $includedTax = true): TaxService

Creates a tax calculation service for Indonesian PPN (11%).

Parameters:

Returns: TaxService instance with calculated values

rupiah(float|int $amount): string

Formats a number as Indonesian Rupiah currency.

Parameters:

Returns: Formatted currency string with "Rp " prefix

terbilang(float|int $amount): string

Converts a number to Indonesian words (terbilang).

Parameters:

Returns: Indonesian text representation with "rupiah" suffix

rupiah_to_number(string|int|float $value): int|float

Parses Indonesian currency strings back to numbers.

Parameters:

Returns: Numeric value (int or float based on decimal presence)

to_e164(string $phone, string $countryCode = '62'): string

Formats phone numbers to E.164 international format.

Parameters:

Returns: E.164 formatted phone number with "+" prefix

TaxService Class

Handles tax calculations with the following public properties:

Facade Usage

Configuration

The package uses a fixed 11% tax rate for Indonesian PPN. This rate is hardcoded in the TaxService class and reflects the current Indonesian tax law.

Error Handling

The package handles common edge cases:

Performance Considerations

Compatibility

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of helpers with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0||^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
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 jinomdeveloper/helpers contains the following files

Loading the files please wait ...