Download the PHP package calisero/calisero-php without Composer

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

Calisero PHP SMS API Library

Latest Version on Packagist tests PHPStan License Tests Total Downloads

Official PHP library for the Calisero transactional SMS API.

Send SMS messages, manage opt-outs for GDPR compliance, and monitor your accountβ€”all with a simple, type-safe PHP library that just works.

Features

Requirements

Installation

Install the library via Composer:

That's it! The library includes its own HTTP client implementation and requires no additional dependencies.

Getting Your API Key

To use this library, you'll need an API key from your Calisero account:

  1. Log in to your Calisero account at https://calisero.ro
  2. Navigate to the dashboard and go to the "API Keys" section
  3. Click "Add Key" to create a new API key
  4. Configure your key:
    • Give it a descriptive name (e.g., "Production App", "Development")
    • Set IP filters if needed for additional security
    • Choose appropriate permissions
  5. Copy your API key and store it securely

API Key Management

From the API Keys section in your dashboard, you can:

Security Note: Never commit API keys to version control. Use environment variables or secure configuration files.

Quick Start

Basic SMS Sending

Environment Configuration

For production applications, store your API key securely:

🎯 Common Use Cases

OTP/2FA Authentication

Order Notifications

Marketing Campaigns with Opt-out Compliance

Advanced Message Creation

Authentication

Using API Key (Bearer Token)

Custom Authentication Provider

πŸ“š Examples

This library includes comprehensive examples for all operations. Check the examples/ directory for detailed usage patterns:

πŸ“± Message Examples

🚫 OptOut Examples (GDPR Compliance)

βœ… Verification Examples (OTP)

πŸ‘€ Account Examples

πŸ›‘οΈ Error Handling

πŸš€ Running Examples

  1. Clone this repository and install dependencies:

  2. Set your API key in any example file:

  3. Run an example:

Note: Examples use masked phone numbers (+40742***350) for security. Replace with actual phone numbers when testing.

API Reference

Messages

Send a Message

Get Message Details

List Messages

Delete a Message

Verifications (OTP)

Create a Verification

Get Verification Details

List Verifications

Validate a Verification Code (OTP)

Opt-outs

Create an Opt-out

List Opt-outs

Update an Opt-out

Delete an Opt-out

Accounts

Get Account Information

Error Handling

The library provides specific exception types for different error scenarios:

Advanced Configuration

Simple Client Creation

The library uses a simplified approach with built-in HTTP client:

The library uses an optimized cURL-based HTTP client internally, providing excellent performance without external dependencies.

Custom Idempotency Key Provider

Testing

The library includes comprehensive test coverage:

Testing Your Implementation

Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

This library is open-sourced software licensed under the MIT license.

Support

Changelog

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


All versions of calisero-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-json Version *
ext-curl Version *
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 calisero/calisero-php contains the following files

Loading the files please wait ...