Download the PHP package kagga/telco without Composer

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

Telco

Telco is a package wrapper around the AfricasTalking api. This package has been developed for Laravel 5+.

The package makes it easy to send an sms from your application to a phone.

Installation

As other laravel packages, Telco is installed via composer.

In your terminal at the project root run

After add the service provider to config/app.php in the providers section

Then also add the Facade aliases in config/app.php within the alias section.

Configuration

Now we are going to config the AfricasTalking api. Head over to your account or sign up to get your api key and username and jey hold of them.

Publish the package config file to the config folder in your app by running this in your terminal.

The config file called telco.php will be moved to config/telco.php.

Then add your username and api key to the .env file using these keys

Thats all with the configuration.

You are about to get done, just one for thing. You can test out whether its working by serving your app php artisan serve and checking http://localhost/telco/send The view at this url comes bundled in the package only for testing purposes.

A success message will be showed after you send the message or an error message if something goes wrong.

Usage

At the moment the package has two methods, one for sending send an sms and the other the api that exposes the AfricasTalking Gateway.

With the api method you can access all the public methods in the AfricasTalkingGateway .

Example code

You can also use the Telco facade that comes with the package to send a message.

Do not forget to add the facade import statement use Kagga\Telco\facades\Telco;

Thats it.

Thanks for using this package.

Let me know what you develop with this package. By sending me an email [email protected] or @johnkagga


All versions of telco with dependencies

PHP Build Version
Package Version
No informations.
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 kagga/telco contains the following files

Loading the files please wait ....