Download the PHP package nir-simionovich/cloudonix-php8 without Composer
On this page you can find all versions of the php package nir-simionovich/cloudonix-php8. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nir-simionovich/cloudonix-php8
More information about nir-simionovich/cloudonix-php8
Files in nir-simionovich/cloudonix-php8
Package cloudonix-php8
Short Description PHP library for creating Cloudonix CXML Voice Applications
License MIT
Informations about the package cloudonix-php8
Cloudonix CXML Library for PHP 8+
A modern PHP library for creating Cloudonix CXML Voice Applications. This library provides a clean, fluent interface for generating CXML documents using lazy-loading and nested callbacks.
Installation
Install the library via Composer:
Requirements
- PHP 8.0 or newer
- ext-xml
Basic Usage
Advanced Usage
The library supports method chaining for a fluent interface:
Using Record with Nested Verbs
The Record verb also supports nested verbs (Say, Play, and Pause):
Supported Verbs
Implemented
Say- Convert text to speechPlay- Play an audio filePause- Add a period of silenceHangup- End the callRedirect- Transfer control to another CXML documentReject- Reject an incoming callGather- Collect input from the caller (with nested verbs)Record- Record audio from the caller (with nested verbs)Start- Begin an asynchronous operation (with nested Stream)Coach- Allow a caller to connect to an existing session and provide coachingDial- Connect calls to numbers, conferences, SIP endpoints or service providers:Number- Dial subscribers or external numbersConference- Conference callsSip- Direct SIP addressesService- 3rd party service providersHeader- Custom SIP headers
Converse- Enable conversational AI interactions using LLMs, STT, and TTS:System- System prompts for the LLMUser- User prompts for the LLMTool- External tools for the LLM to useDescription- Descriptions for toolsSpeech- Placeholder for caller's verbal response
Project Structure
/src/Verbs/Nested/- Contains the shared VerbBuilder for all nested verbs/src/Verbs/Gather/- Contains the Gather verb and its specialized GatherVerbBuilder/src/Verbs/Record/- Contains the Record verb and its specialized RecordVerbBuilder/src/Verbs/Start/- Contains the Start verb, Stream noun, and specialized StartVerbBuilder/src/Verbs/Dial/- Contains the Dial verb and all related nouns (Number, Conference, Sip, Service, Header)/src/Verbs/Converse/- Contains the Converse verb and all related nouns (System, User, Tool, Description, Speech)/src/Verbs/- Contains the basic verbs that don't support nesting
The project uses inheritance to avoid code duplication, with a shared base builder for nested verbs.
Changelog
See the CHANGES.md file for a detailed list of changes between versions.
License
MIT License
Copyright (c) 2025 Nir Simionovich
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All versions of cloudonix-php8 with dependencies
ext-xml Version *