-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,50 @@ | ||
# watzap-id | ||
PHP module untuk integrasi dengan Watzap.id | ||
|
||
![Logo](https://indiega.net/assets/images/indiega-web-logo-path.svg) | ||
# Watzap.id PHP Module | ||
|
||
Paket ini dibuat dan dikembangkan untuk integrasi WhatsApp notifikasi yang disediakan oleh layanan Watzap.id. | ||
|
||
|
||
|
||
## Installation | ||
|
||
Install paket PHP ini dengan composer | ||
|
||
```bash | ||
composer require ay4t/watzap-id | ||
``` | ||
Atau Anda dapat menambahkan repository dari github saya dengan cara tambahkan baris berikut pada composer.json | ||
```bash | ||
composer config minimum-stability dev | ||
composer config repositories.watzap vcs [email protected]:ay4t/watzap-id | ||
composer require ay4t/watzap-id | ||
``` | ||
## Usage/Examples | ||
|
||
```php | ||
require_once 'vendor/autoload.php'; | ||
|
||
$sendText = new \Ay4t\WatzapId\SendText(); | ||
$sendText->setApiKey('YOUR-API-KEY'); | ||
$sendText->setNumberKey('YOUR-NUMBER-KEY'); | ||
$sendText->setPhone('6285791555506'); | ||
$sendText->setMessage('isi pesan Anda'); | ||
$result = $sendText->result(); | ||
|
||
var_dump($result); | ||
``` | ||
|
||
|
||
## Contributing | ||
|
||
Contributions are always welcome! | ||
|
||
See `contributing.md` for ways to get started. | ||
|
||
Please adhere to this project's `code of conduct`. | ||
|
||
|
||
## License | ||
|
||
[MIT](https://choosealicense.com/licenses/mit/) | ||
|