Download the PHP package reshapify/sendseven without Composer

On this page you can find all versions of the php package reshapify/sendseven. 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 sendseven

SendSeven for PHP

Unofficial. Not affiliated with or endorsed by SendSeven GmbH.

A typed PHP SDK for the SendSeven messaging API: WhatsApp, SMS, email, Telegram, Messenger, Instagram, RCS and browser push, from one client.

Requires PHP 8.3+ and any PSR-18 HTTP client (Guzzle, Symfony HttpClient…), which is found automatically. Laravel? Use reshapify/sendseven-laravel.

Send a message

send() returns the message even when SendSeven reports it failed (e.g. outside WhatsApp's 24-hour window). sendText() throws MessageFailed instead. For WhatsApp buttons and lists, sendButtons() and sendList() trim everything to WhatsApp's limits and, if SendSeven refuses them, send the options as a numbered text the customer can answer:

Every area of the API is a method on the client: contacts(), channels(), whatsAppTemplates(), conversations(), campaigns(), webhooks() and 65 more. Arguments are named and typed; optional ones are left out of the request.

Lists

Receive webhooks

See the webhooks guide for every event and how SendSeven signs them.

Let customers connect their own channels

SendSeven runs WhatsApp's Embedded Signup (and Messenger, Instagram, Telegram, SMS and email onboarding) on a hosted page. Create a link, send the customer to it, and a channel.created webhook tells you when they're done.

More in onboarding channels.

One tenant, or many

A token belongs to one SendSeven tenant (workspace), and everything works with it on any plan that includes the API. Platforms that give each customer their own sub-account can act on it with forTenant():

That needs SendSeven's multi-tenant management (Professional, Scale, Enterprise or API Only; not Basic, or a trial that has ended), and creating tenants needs a token from the billing account's owner. Check before you rely on it:

See tenancy and plans.

Errors

Every exception implements Reshapify\SendSeven\Exceptions\SendSevenException, and its message names the endpoint, the status and what to do:

Exception When
AuthenticationFailed 401: the token is wrong, expired or revoked
PermissionDenied 403: the token lacks a scope
FeatureDisabled 403: the plan lacks a feature; feature() names it
NotBillingAccountOwner 403: only the billing account's owner can create tenants
NotFound 404
ValidationFailed 422; fieldErrors() lists each field
RateLimited 429 after retries; retryAfter()
InsufficientBalance 402 or an insufficient_* code, e.g. the RCS wallet
ServerError 5xx after retries
TransportFailed SendSeven couldn't be reached
UnexpectedResponse a field came back with the wrong type, or the body wasn't JSON. A field that's simply missing reads as an empty value instead ('', 0, false, []), so the original is on ->raw()

Retries, rate limits and idempotency

Writes get an Idempotency-Key automatically, so retrying them is safe; pass your own (idempotencyKey: 'order-42-shipped') to make a repeat from your side safe too. 429s, 5xx and connection failures are retried up to three times with backoff, honouring Retry-After. A token allows 100 standard requests a minute: give processes that share it a shared RateLimiter. See resilience.

Testing

Webhook tests can sign their own deliveries with Webhook::sign($body, $secret). See testing.

Anything else

$sendseven->request(Method::Get, '/some/new/endpoint') calls any endpoint with the same authentication, retries and errors. ->raw() on any response object returns the original JSON, including fields the SDK doesn't model.

Documentation

Contributing

See SECURITY.md.

License

MIT. Unofficial: not affiliated with or endorsed by SendSeven GmbH; "SendSeven" is used only to say what this SDK works with. openapi/sendseven.json is SendSeven's published API description and isn't covered by this license; see openapi/NOTICE.md.


All versions of sendseven with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
php-http/discovery Version ^1.20
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.1
psr/http-factory-implementation Version ^1.0
psr/http-message Version ^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 reshapify/sendseven contains the following files

Loading the files please wait ...