Download the PHP package list-interop/convertkit-client without Composer
On this page you can find all versions of the php package list-interop/convertkit-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download list-interop/convertkit-client
More information about list-interop/convertkit-client
Files in list-interop/convertkit-client
Package convertkit-client
Short Description An API Client for ConvertKit
License MIT
Homepage https://github.com/list-interop/convertkit-client
Informations about the package convertkit-client
ConvertKit PHP API Client
Introduction
This is an API Client for the ConvertKit mailing list service for PHP versions 8.0 and up
There are several clients available on Packagist, but the main motivation here is being agnostic to the HTTP client in use.
The client uses PSR17 and 18 standards, so you can bring your own preferred libs.
Implemented Features
- [x] Retrieve form by id
- [x] Subscribe to a form (Custom fields are not yet available)
- [x] List and find tags
- [x] Create Tags
- [ ] List custom fields
- [ ] Crud for custom fields
- [ ] Fetch form subscriber
- [ ] Other Crud operations for subscribers
- [ ] Tagging subscribers post subscribe.
- [ ] Stuff regarding webhooks and purchases…
Roadmap
It'd be nice to work up the rest of the available features in the API, but it probably won't happen very quickly, I'm more likely to work on different implementations first to firm up the spec there so that stable releases can be made. Shipping a caching client using a psr cache pool would be handy for those aspects of the API that rarely change. It would also be quite trivial to implement.
Installation
Composer is the only supported installation method…
As previously mentioned, you'll need a PSR-18 HTTP Client first and also PSR-7 and PSR-17 implementations. For example:
You'll then be able to install this with:
Usage
Docs are admittedly thin on the ground.
The lib ships with a PSR11 factory that you can integrate with your container of choice. It falls back to discovery for whatever PSR-7/17/18 stuff that you have installed.
Ultimately, you'll need API Keys to get going, and assuming you can provide the Client
constructor with its required constructor dependencies, you'll be able to start issuing commands and getting results:
Add a subscriber…
You should find that exceptions are consistent and meaningful, but for now, to find out what those are, you'll need to look at the source.
Contributions
Are most welcome, but please make sure that pull requests include relevant tests. There's a handy composer script you can run locally:
… which will check coding standards, run psalm and phpunit in order.
License
MIT Licensed.
All versions of convertkit-client with dependencies
ext-json Version *
fig/http-message-util Version ^1.1
myclabs/php-enum Version ^1.8
php-http/discovery Version ^1.14.3
psr/container Version ^1 || ^2
psr/http-client Version ^1.0
psr/http-client-implementation Version *
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
webmozart/assert Version ^1.11