Download the PHP package delighted/delighted without Composer

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

Build Status

Delighted PHP API Client

Official PHP client for the Delighted API.

Requirements

Installation

Install via Composer by adding this to your composer.json:

Then install via:

This will also install the Guzzle HTTP request library that the Delighted PHP API Client depends upon.

Configuration

To get started, you need to configure the client with your secret API key. At some point in your application's initialization, before you call any other Delighted PHP API client methods, do this (replacing YOUR_API_KEY with your actual API key, of course):

Note: Your API key is secret, and you should treat it like a password. You can find your API key in your Delighted account, under Settings > API.

Usage

Adding/updating people and scheduling surveys:

Unsubscribing people:

Listing people:

Listing unsubscribed people:

Listing bounced people:

Deleting a person and all of the data associated with them:

Deleting pending survey requests

Adding survey responses:

Retrieving a survey response:

Updating survey responses:

Listing survey responses:

Retrieving metrics:

Managing Autopilot:

Rate limits

If a request is rate limited, a \Delighted\RateLimitedException exception is raised. You can rescue that exception to implement exponential backoff or retry strategies. The exception provides a getRetryAfter() method to tell you how many seconds you should wait before retrying. For example:

Advanced Configuration and Testing

The various Delighted resource methods use a shared client object to make the HTTP requests to the Delighted server. To change how that shared client object works, you can pass an array of options to the \Delighted\Client::getInstance() method (before you call any resource methods) that control its behavior.

The chief option you may want to change is baseUrl, which defaults to https://api.delighted.com/v1/. If you want to send Delighted API requests to a different URL (for example, a local mock server for testing), pass that URL as the value for the baseURL array key in the options passed to \Delighted\Client::getInstance(). For example:

You can also easily mock Delighted API requests and responses by following the pattern that the API client's test cases use:

For example:

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Run the tests (php -f run-tests.php)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

Releasing

  1. Bump the version in lib/Delighted/Version.php.
  2. Update the README and CHANGELOG as needed.
  3. Tag the commit for release.
  4. Push (Packagist will pick up the release from the tag).

All versions of delighted with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
guzzlehttp/guzzle Version ^6.2||^7.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 delighted/delighted contains the following files

Loading the files please wait ....