Download the PHP package nikba/directus-api without Composer
On this page you can find all versions of the php package nikba/directus-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nikba/directus-api
More information about nikba/directus-api
Files in nikba/directus-api
Package directus-api
Short Description Directus v8.8.1 API Wrapper for PHP
License MIT
Homepage https://www.nikba.com/
Informations about the package directus-api
directus-api
This is a PHP wrapper for the Directus v8.8.1 API, which allows you to easily interact with Directus from your PHP applications.
Directus is an open-source headless CMS and API that provides a sleek interface for managing your content, while allowing you to use your favorite frontend tools and frameworks.
With this API wrapper, you can programmatically create, read, update, and delete items and collections in Directus, as well as manage users, permissions, and settings.
Installation
You can install this package via Composer by running the following command:
Usage/Examples
To get started with this API wrapper, you'll need to first create an instance of the Nikba\Directus class, passing in your Directus API URL and Project Name:
Creating an API-instance
Authentification
Error handling
Once you have a client instance, you can use it to make API requests.
Items
Items are individual pieces of data in your database. They can be anything, from articles, to IoT status checks.
Files
Files can be saved in any given location. Directus has a powerful assets endpoint that can be used to generate thumbnails for images on the fly.
Assets (Thumbnails)
Image typed files can be dynamically resized and transformed to fit any need.
Folders
Folders don't do anything yet, but will be used in the (near) future to be able to group files.
Activities
All events that happen within Directus are tracked and stored in the activities collection. This gives you full accountability over everything that happens.
Permissions
Permissions control who has access to what and when.
Projects
Projects are the individual tenants of the platform. Each project has its own database and data.
Relations
What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of.
Revisions
Revisions are individual changes to items made. Directus keeps track of changes made, so you're able to revert to a previous state at will.
Roles
Roles are groups of users that share permissions.
Server
Access to where Directus runs. Allows you to make sure your server has everything needed to run the platform, and check what kind of latency we're dealing with.
Settings
Settings control the way the platform works and acts.
Users
Users are what gives you access to the data.
Send electronic mail through the electronic post.
Utilities
Documentation
For more information on the available methods and parameters, please refer to the API Documentation
Support
For support, email [email protected].
Contributing
Contributions are always welcome!
If you find a bug or would like to contribute to this project, please open an issue or submit a pull request on GitHub.