tjetak/kalkulator-php

Official Tjetak Kalkulator API wrapper in PHP.

0.1.52 2020-07-03 15:17 UTC

This package is auto-updated.

Last update: 2024-04-29 04:06:20 UTC


README

Tjetak :heart: PHP!

This is the official Tjetak Kalkulator API wrapper in PHP.

Tjetak Kalkulator is an API which provides information on various printed & customized products price in Tjetak database. For more information about Tjetak Kalkulator, please visit https://calc.tjetak.com.

Installation

Require this package with Composer using the following command:

$ composer require tjetak/kalkulator-php

How to Use

Set the Key

Set the key with your Tjetak Kalkulator API key.

Kalkulator::$key = "YOUR_API_KEY";

Get Resources

Kalkulator PHP provides you the classes to get the corresponding resources. For example, you can get the business cards specifications by using the following code.

use Kalkulator/BusinessCard;

function myFunction() {
    $specs = BusinessCard::specs(); // this returns business cards specifications
}

Contributing

We welcome any contribution to the Kalkulator PHP! The contribution guide can be found here.

License

Kalkulator PHP is open-sourced software licensed under the MIT license.