Download the PHP package sendx/sendx-php-sdk without Composer

On this page you can find all versions of the php package sendx/sendx-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sendx-php-sdk

SendX PHP SDK

🚀 Introduction

The SendX API is organized around REST principles. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Key Features:

🏗️ Architecture Overview

SendX uses a three-layer model architecture:

  1. Input Models (RestE*): For API requests
  2. Output Models (RestR*): For API responses with prefixed IDs
  3. Internal Models: Core business logic (not exposed in API)

🔐 Security & Authentication

SendX uses API key authentication:

Team API Key

🆔 Encrypted ID System

SendX uses encrypted IDs for security and better developer experience:

ID Format

All resource IDs follow this pattern:

Example:

📚 Resource Prefixes

Resource Prefix Example
Contact contact_ contact_BnKjkbBBS500CoBCP0oChQ
Campaign campaign_ campaign_LUE9BTxmksSmqHWbh96zsn
List list_ list_OcuxJHdiAvujmwQVJfd3ss
Tag tag_ tag_UhsDkjL772Qbj5lWtT62VK
Sender sender_ sender_4vK3WFhMgvOwUNyaL4QxCD
Template template_ template_f3lJvTEhSjKGVb5Lwc5SWS
Custom Field field_ field_MnuqBAG2NPLm7PZMWbjQxt
Webhook webhook_ webhook_9l154iiXlZoPo7vngmamee
Post post_ post_XyZ123aBc456DeF789GhI
Post Category post_category_ post_category_YzS1wOU20yw87UUHKxMzwn
Post Tag post_tag_ post_tag_123XyZ456AbC
Member member_ member_JkL012MnO345PqR678

🎯 Best Practices

Error Handling

Data Validation

Performance

🛠️ SDKs & Integration

Official SDKs available for:

📞 Support

Need help? Contact us:


API Endpoint: https://api.sendx.io/api/v1/rest

For more information, please visit https://sendx.io.

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the bindings via Composer, use the following command on the command line:

Or, add the following to composer.json:

Manual Installation

Download the files and include autoload.php:

Getting Started

Please follow the installation procedure and then run the following:

API Endpoints

All URIs are relative to https://api.sendx.io/api/v1/rest

Class Method HTTP request Description
CampaignApi createCampaign POST /campaign Create campaign
CampaignApi deleteCampaign DELETE /campaign/{identifier} Delete campaign
CampaignApi getAllCampaigns GET /campaign Get all campaigns
CampaignApi getCampaign GET /campaign/{identifier} Get campaign by ID
ContactApi createContact POST /contact Create a new contact
ContactApi deleteContact DELETE /contact/{identifier} Delete contact
ContactApi getAllContacts GET /contact Get all contacts
ContactApi getContact GET /contact/{identifier} Get contact by ID
ContactApi unsubscribeContact POST /contact/unsubscribe/{identifier} Unsubscribe contact
ContactApi updateContact PUT /contact/{identifier} Update contact
CustomFieldApi createCustomField POST /customfield Create custom field
CustomFieldApi deleteCustomField DELETE /customfield/{identifier} Delete custom field
CustomFieldApi getAllCustomFields GET /customfield Get all custom fields
CustomFieldApi getCustomField GET /customfield/{identifier} Get custom field by ID
CustomFieldApi updateCustomField PUT /customfield/{identifier} Update custom field
EmailSendingApi sendEmail POST /send/email Send transactional email
EmailSendingApi sendEmailWithTemplate POST /send/template Send email using template
EventApi eventsCustomPostbackGet GET /events/custom/postback Custom Event Postback URL
EventApi eventsRevenuePostbackGet GET /events/revenue/postback Revenue Event Postback URL
EventsApi trackCustomEvent POST /events/custom Track custom event
EventsApi trackRevenueEvent POST /events/revenue Track revenue event
ListApi createList POST /list Create list
ListApi deleteList DELETE /list/{identifier} Delete list
ListApi getAllLists GET /list Get all lists
ListApi getList GET /list/{identifier} Get list by ID
ListApi updateList PUT /list/{identifier} Update list
PostApi createPost POST /post Create blog post
PostApi deletePost DELETE /post/{identifier} Delete post
PostApi getAllPosts GET /post Get all posts
PostApi getPost GET /post/{identifier} Get post by ID
PostApi updatePost PUT /post/{identifier} Update post
PostCategoryApi createPostCategory POST /post/category Create post category
PostCategoryApi deletePostCategory DELETE /post/category/{identifier} Delete post category
PostCategoryApi getAllPostCategories GET /post/category Get all post categories
PostCategoryApi getPostCategory GET /post/category/{identifier} Get post category by ID
PostCategoryApi updatePostCategory PUT /post/category/{identifier} Update post category
PostTagApi createPostTag POST /post/tag Create post tag
PostTagApi deletePostTag DELETE /post/tag/{identifier} Delete post tag
PostTagApi getAllPostTags GET /post/tag Get all post tags
PostTagApi getPostTag GET /post/tag/{identifier} Get post tag by ID
PostTagApi updatePostTag PUT /post/tag/{identifier} Update post tag
ReportApi getCampaignReport GET /report/campaign/{identifier} Get campaign report
SenderApi createSender POST /sender Create sender
SenderApi getAllSenders GET /sender Get all senders
TagApi createTag POST /tag Create tag
TagApi deleteTag DELETE /tag/{identifier} Delete tag
TagApi getAllTags GET /tag Get all tags
TagApi getTag GET /tag/{identifier} Get tag by ID
TagApi updateTag PUT /tag/{identifier} Update tag
TeamMemberApi getAllTeamMembers GET /team/member Get all team members
TeamMemberApi getTeamMember GET /team/member/{identifier} Get a team member by ID
TemplateApi createEmailTemplate POST /template/email Create email template
TemplateApi deleteEmailTemplate DELETE /template/email/{identifier} Delete template
TemplateApi getAllEmailTemplates GET /template/email Get all templates
TemplateApi getEmailTemplate GET /template/email/{identifier} Get template by ID
TemplateApi updateEmailTemplate PUT /template/email/{identifier} Update template
TrackingApi identifyContact POST /contact/identify Identify contact
TrackingApi trackContact POST /contact/track Track contact
WebhookApi createWebhook POST /webhook Create webhook
WebhookApi deleteWebhook DELETE /webhook/{identifier} Delete webhook
WebhookApi getAllWebhooks GET /webhook Get all webhooks
WebhookApi getWebhook GET /webhook/{identifier} Get webhook by ID
WebhookApi updateWebhook PUT /webhook/{identifier} Update webhook

Models

Authorization

Authentication schemes defined for the API:

TeamApiKey

Author

[email protected]


All versions of sendx-php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sendx/sendx-php-sdk contains the following files

Loading the files please wait ...