Download the PHP package kamrankhosa/laravel-voipnow without Composer
On this page you can find all versions of the php package kamrankhosa/laravel-voipnow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kamrankhosa/laravel-voipnow
More information about kamrankhosa/laravel-voipnow
Files in kamrankhosa/laravel-voipnow
Package laravel-voipnow
Short Description A laravel package to interact with voipnow API
License MIT
Homepage https://github.com/kamrankhosa/laravel-voipnow
Informations about the package laravel-voipnow
Laravel VoipNow
A production-ready Laravel package for interacting with:
- VoipNow UnifiedAPI v5 (REST) — phone calls, events, presence, CDRs, faxes
- VoipNow SystemAPI (SOAP) — account provisioning, organizations, extensions, billing, PBX
Supports Laravel 10, 11, 12 with PHP 8.1+.
Features
- Dual adapter — REST (UnifiedAPI v5, default) and SOAP (SystemAPI, legacy)
- Two facades —
VoipNow(REST) andVoipNowSoap(SystemAPI) - OAuth2 token management — automatic acquisition and refresh per user or via cache
- Typed HTTP methods —
get(),post(),put(),patch(),delete() - Pagination helper —
paginate($resource, $page, $perPage) - Resource finder —
find($resource, $id) - 13 first-class REST helpers —
GetServiceProviders(),GetOrganizations(),GetUsers(), etc. - 338+ SOAP operations — full SystemAPI with IDE docblocks
- Magic method fallback —
VoipNow::GetCallQueues()auto-maps to REST endpoint - Artisan command —
php artisan voipnow:checkfor connection diagnostics - Full test suite — Orchestra Testbench + Mockery
Requirements
| Requirement | Version |
|---|---|
| PHP | ^8.1, ^8.2, ^8.3 |
| Laravel | ^10.0, ^11.0, ^12.0 |
| GuzzleHttp | ^7.5 |
| php-soap ext | Required only for SOAP adapter |
Installation
Publish the config file and migration:
Run the migration (adds token columns to your users table):
Configuration
Add these keys to your .env file:
Usage — UnifiedAPI v5 (REST)
The VoipNow facade targets the VoipNow UnifiedAPI v5 for real-time telephony operations.
Core HTTP Methods
Pagination & Single-resource Helpers
First-class Resource Helpers
Magic Method Fallback
Any Get*, Add*, Update*, Remove* call is automatically resolved to its REST endpoint:
Usage — SystemAPI (SOAP)
The VoipNowSoap facade (or VoipNow::soap()) targets the VoipNow SystemAPI for account provisioning.
Note: Requires the
php-soapextension. SetVOIPNOW_ADAPTER=soapis not required — the SOAP client is always available independently.
Via the Dedicated Facade
Via the REST Facade's soap() Accessor
Via the Container
Artisan Commands
Example output:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
Support
Please open an issue in GitHub
License
The MIT License (MIT). Please see License File for more information.