Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikesmullin/li3_clickatell
Lithium adapter for Clickatell.com API
https://github.com/mikesmullin/li3_clickatell
Last synced: about 1 month ago
JSON representation
Lithium adapter for Clickatell.com API
- Host: GitHub
- URL: https://github.com/mikesmullin/li3_clickatell
- Owner: mikesmullin
- Created: 2011-06-26T20:33:36.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-20T19:14:52.000Z (over 13 years ago)
- Last Synced: 2024-04-14T14:50:57.582Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 94.7 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# li3 Clickatell
The Lithium PHP SMS Library for API.Clickatell.com
## Introduction
To use this library, you will need sign up for an account at www.clickatell.com. The easiest one to sign up for for testing purposes is their Small Business U.S. account which is just $25/mo. and supports Two-Way Messaging. When you signup, it currently does not prompt you for a credit card right away. You can signup for free and you get 10 texts. But once you validate your email they will ask for your credit card. This is optional and you can test without it. You will not be able to customize the message body unless you call and talk to them. If you need more than 10 texts thats when you enter your credit card number to get the full 500 quota.
## Installation
Copy this code to your ./libraries/ directory:
`git submodule add https://[email protected]/mikesmullin/li3_clickatell.git ./libraries/li3_clickatell`
## Configuration
You will need 3-4 things, depending on what you want to do:
1. **Username** (you choose this during registration)
2. **Password** (you choose this during registration)
3. **API ID** (this is usually auto-generated and you can find it under Manage My Products; if not, you have to provision one through Clickatell web admin yourself)
4. **Two-Way Number** (only on select accounts; provisioned once you pay and displayed on Central Home page in Clickatell web admin)Add this line to your ./app/config/bootstrap/libraries.php:
```php
```
Add this line to your ./app/config/bootstrap/connections.php:
```php
'http',
'adapter' => 'Clickatell',
'api_id' => '1234567',
'api_username' => 'myuser',
'api_password' => 'mypass',
'from' => '18001234567'
));?>
```Create a new model ./app/models/Sms.php:
```php
null,
'title' => null,
'class' => null,
'source' => null,
'connection' => 'my_clickatell',
'initialized' => false
);
}?>
```## Usage
To send a message:
```php
```