Download the PHP package cecula/sync-api-client without Composer

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

Introduction

Cecula Sync API Client is a simple library that powers your app to manage your hosted sim account. You can access all endpoint features simply by invoking the appropriate methods for making calls, sending sms, etc.

Installation

I'll take it for granted that you're already using composer. To install Cecula Sync API Client to your project simply run the command below in your terminal.

composer require cecula/sync-api-client

Get your API Key

Create your Config File

And that's all! Let's jump right into action with a quick start.

Quick Start

Since we are working with composer, I am trusting somewhere in your project you have already autoloaded classes. Cecula Sync API Client will autoload if you have done something like this at least in your entry script.

require_once __DIR__."/vendor/autoload.php";

*** If you are using a framework, that would have already been done for you.

Calls

use CeculaSyncApiClient\SyncCall;

$testMobile = ""; // Enter your mobile number here

$syncCall = new SyncCall();

echo "Send Missed Call: ".PHP_EOL;
var_dump($syncCall->dial($testMobile));

echo "Call Status: ".PHP_EOL;
var_dump($syncCall->getCallStatus("2020012676"));

echo "Call Auto-Response Message: ".PHP_EOL;
var_dump($syncCall->saveCallAutoResponseText(""));

echo "New Missed Calls: ".PHP_EOL;
var_dump($syncCall->getNewMissedCalls());

SMS

use CeculaSyncApiClient\SyncSms;

$syncSms = new SyncSms();

echo "Send SMS: ".PHP_EOL;
var_dump($syncSms->sendSMS("Hello Sync", [$testMobile]));

echo "Sent SMS Status: ".PHP_EOL;
var_dump($syncSms->getSentMessageStatus("36545"));

echo "Get Unread SMS: ".PHP_EOL;
var_dump($syncSms->getUnreadSMS());

echo "Save Auto-Response SMS: ".PHP_EOL;
var_dump($syncSms->setSMSAutoResponseText("Thank you. I'll revert ASAP"));

Account Management

use CeculaSyncApiClient\SyncAccount;

$syncAccount = new SyncAccount();

echo "Get Cecula Balance: ".PHP_EOL;
var_dump($syncAccount->getCeculaBalance());

echo "Get Subscription Status: ".PHP_EOL;
var_dump($syncAccount->getSubscriptionStatus());

echo "Get SIM Status: ".PHP_EOL;
var_dump($syncAccount->getSimStatus());

echo "Refresh SIM: ".PHP_EOL;
var_dump($syncAccount->refreshSIM());

For more details, kindly refer to the Cecula Sync API Reference.


All versions of sync-api-client with dependencies

PHP Build Version
Package Version
Requires rmccue/requests Version >=1.8
php Version ^8.0.0
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 cecula/sync-api-client contains the following files

Loading the files please wait ....