sdkfabric / twilio
Twilio PHP SDK managed by SDK Fabric
Fund package maintenance!
dev-main
2026-10-18 19:51 UTC
Requires
- sdkgen/client: ^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-29 22:17:41 UTC
README
This SDK is managed by the SDK Fabric project, a global infrastructure to automatically generate SDKs for every API.
You can find more information about this SDK at TypeHub: https://app.typehub.cloud/d/sdkfabric/twilio
Usage
<?php require __DIR__ . '/vendor/autoload.php'; $client = new \SdkFabric\Twilio\Client::build('[access_token]'); // Delete the Media resource. $response = $client->media()->delete('accountSid', 'messageSid', 'sid'); // Fetch a single Media resource associated with a specific Message resource. $response = $client->media()->get('accountSid', 'messageSid', 'sid'); // Read a list of Media resources associated with a specific Message resource. $response = $client->media()->getAll('DateCreated', 1, 1, 'PageToken', 'accountSid', 'messageSid'); // Send a message (SMS, MMS, WhatsApp or other channel). $response = $client->messages()->create('accountSid', new mixed()); // Deletes a Message resource from your account. $response = $client->messages()->delete('accountSid', 'sid'); // Fetch a specific Message. $response = $client->messages()->get('accountSid', 'sid'); // Retrieve a list of Message resources associated with a Twilio Account. $response = $client->messages()->getAll('DateSent', 'From', 1, 1, 'PageToken', 'To', 'accountSid'); // Update a Message resource (used to redact Message `body` text and to cancel not-yet-sent messages). $response = $client->messages()->update('accountSid', 'sid', new mixed());