Download the PHP package stboris/laravel-croatia-toolkit without Composer

On this page you can find all versions of the php package stboris/laravel-croatia-toolkit. 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 laravel-croatia-toolkit

Laravel Croatia Toolkit

Small, focused Croatian business utilities for Laravel: OIB validation and Sudski registar (court register) company lookup, HNB exchange rates, and Croatian IBAN validation - with an optional Filament v5 form field for OIB autofill.

Free and MIT-licensed. No Croatian company registration is required to use or test any of it.

Installation

OIB

Checksum validation (ISO 7064 MOD 11,10) needs no configuration or network access:

As a validation rule:

Company lookup (Sudski registar)

Looking up a company's name/address by OIB additionally needs a free client id/secret from the Sudski registar open data portal - no company registration required, just a valid email:

Verified live against the test environment (2026-07-22): token auth is HTTP Basic (client id/secret), the lookup endpoint is /api/javni/detalji_subjekta with tip_identifikatora/identifikator query params, and a not-found subject comes back as an empty JSON object rather than a 404.

Filament form field

Requires filament/filament. Validates the OIB as you type and, once valid, autofills sibling fields from the Sudski registar. A magnifying-glass icon signals the lookup, turning into a checkmark on success or a warning triangle on failure, with a translated helper text explaining the behaviour:

A successful lookup sets a {name}_locked state flag (oib_locked for a field named oib) - bind sibling fields' ->disabled() to it if you don't want autofilled registry data overwritten by hand.

HNB exchange rates

Public, keyless API - no configuration needed. Uses the live api.hnb.hr/tecajn-eur/v3 endpoint (the older /tecajn/v2 path stopped updating when Croatia adopted the euro in 2023).

IBAN

Generic ISO 13616 (MOD-97-10) checksum for any country, plus a Croatia-specific shape check:

As a validation rule:

Translations

Validation messages are translated for English (default) and Croatian - whichever the app's locale (app()->getLocale()) resolves to is used automatically, no setup needed:

To customize the wording, publish and edit the files:

which places them under lang/vendor/croatia-toolkit/{locale}/validation.php.

Testing

License

MIT.


All versions of laravel-croatia-toolkit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^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 stboris/laravel-croatia-toolkit contains the following files

Loading the files please wait ...