Download the PHP package motion-php/client without Composer

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

Motion PHP is a community maintained PHP API Client for interacting with Motion API. Motion is an excellent calendar and project management application which uses AI to reschedule your time effectively. If you haven't heard of it yet, check it out at usemotion.com.

Motion PHP Example

GitHub Workflow Status (main) Packagist Version (including pre-releases) Packagist Downloads GitHub


Table of Contents


Getting Started

Requires PHP 8.1+

Requires PSR-18 HTTP Client

Install the Motion PHP client using the Composer package manager:

Make sure the php-http/discovery composer plugin is allowed to run or install a PSR-18 HTTP Client implementation manually if your project does not already have one.

Then you are ready to interact with the Motion API. To get started quickly, you can use the Motion::client factory method to create a client instance.

It is possible if you require to configure and provide a separate HTTP client using the Motion::factory method.


Usage

Tasks resource

update a task

Updates a task with the given id and properties. Returns a Task object.

PATCH /tasks/{id}: :book: Documentation

create a task

Creates a task with the given properties. Returns a Task object.

POST /tasks: :book: Documentation

delete a task

Deletes a task with the given id. Returns a Task object.

DELETE /tasks/{id}: :book: Documentation

retrieve a task

Retrieves a task with the given id. Returns a Task object.

GET /tasks/{id}: :book: Documentation

move task between workspaces

Moves a task with the given id to a new workspace with the given id. Returns a Task object.

POST /tasks/{id}/move: :book: Documentation


Recurring Tasks resource

create a recurring task

Creates a recurring task with the given properties. Returns a RecurringTask object.

POST /recurring-tasks: :book: Documentation

list recurring tasks

Lists recurring tasks in a workspace. Returns an array of RecurringTask objects.

GET /recurring-tasks: :book: Documentation

delete a recurring task

Deletes a recurring task with the given id. Returns an id string.

DELETE /recurring-tasks/{id}: :book: Documentation

Workspaces resource

list

Lists workspaces for an organization.

GET /workspaces: :book: Documentation

statuses

List statuses for a workspace

Users Resource

list

Lists the currently available users. Can be limited by teamId or workspaceId.

Testing

Mock mode

The client can be configured to run in mock mode. This will return mock responses for all requests. This is useful for testing. This can help with implementation without hitting the API and hitting rate limits.


All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1.0
php-http/discovery Version 1.x-dev
psr/http-client Version 1.0.x-dev
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
psr/http-message Version 2.0.x-dev
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 motion-php/client contains the following files

Loading the files please wait ....