Download the PHP package chkltlabs/wix-client without Composer
On this page you can find all versions of the php package chkltlabs/wix-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chkltlabs/wix-client
More information about chkltlabs/wix-client
Files in chkltlabs/wix-client
Package wix-client
Short Description A fluent interface for the Wix API
License MIT
Informations about the package wix-client
Chkltlabs Wix Client
PHP implementation of Wix API as an SDK.
Installation
Usage
The use of this package is intentionally extremely basic, methods have no required inputs except where required by the underlying Wix API. Please see Wix API Docs for more information.
This package has only been tested using API Keys. Please see the Roadmap below for planned features.
To begin, instantiate the Wix class. Depending on the endpoints you plan to access, you may set one of account_id/site_id
as a blank string (but not both).
Now you have a class-based accessor to various api resources. These resources are treated as properties on the Wix class, or as properties of those properties:
This structure aims to replicate the Wix API Docs as closely as possible.
Roadmap
Implemented
- Blog
-
- Categories
- Drafts
- Posts
- Tags
- Business
-
- Location
- Properties
- Comments
- Contacts
-
- Bulk
- ExtendedFields
- Facets
- Labels
- Coupons
-
- Bulk
- Inbox
-
- Conversations
- Messages
Upcoming
- Marketing
- Media
- Members
- Site Content
- Automations
- Bookings
- Chat
- Data
- Events
- Forms
- Forum
- Groups
- Notifications
- Class method -> Route Documentation
Not Planned
- Cashier
- eCommerce
- Loyalty Program
- Payments
- Pricing Plans
- Restaurants
- Stores
- Payment Provider SPI
- Account Management
Contributing
The Package uses a unified request system built on AbstractResource, so contributing new endpoints is as simple as creating a new class in src/Resources
, and creating further subclasses is as simple as creating a new directory that matches your class name, and adding the HasCachedResources
trait to your parent class. Make sure each extends AbstractResource
.
Example from Blog.php:
Credit && Thanks
This package is heavily inspired and influenced by the excellent (TomorrowIdeas/Plaid)[https://github.com/TomorrowIdeas/plaid-sdk-php] SDK implementation. Go show them some love!