Download the PHP package rikochey/rikochey-php without Composer

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

Rikochey PHP

Official PHP client for the Rikochey API: websites, forms, server-side submissions, JavaScript actions and API tokens.

The full guide is published with the API documentation: Client libraries → Rikochey PHP.

Installation

Without Composer, download a release, unzip it in your project and load its autoloader:

Getting started

Create an API key in your workspace (Organization → API tokens), then:

Keep the key on the server, in your configuration: it gives access to every website of your organization, and must never reach a browser.

What it covers

Resource Methods
Websites websites()->all(), get($id), inDepartment($code)
Forms of a website websites()->forms($id): the script tag and the active forms, with Form::tag() to place one in a page
Submissions submissions()->submit($websiteId, $formSlug, $fields, $captcha)
JavaScript actions websites()->eventActions($id), updateEventActions($id, $actions, $version)
API tokens tokens()->all(), create($name), revoke($id), revokeAll()

Place a form in a page

Submit a request from a server

Errors

Every exception extends Rikochey\Exception\RikocheyException:

Exception When
AuthenticationException 401: key unknown, expired or revoked
AuthorizationException 403: another organization, website disabled, captcha (errorCode)
NotFoundException 404: unknown website, form or token
ConflictException 409: the JavaScript actions changed since they were read
ValidationException 422: invalid fields, errors() by field name
RateLimitException 429: wait retryAfter seconds
ApiException any other status, or a response that is not JSON
TransportException no response at all: DNS, TLS, timeout

Your own HTTP client

Implement Rikochey\Http\Transport (one send(Request): Response method) and pass it as the third argument of the client. Return every HTTP response, error statuses included: the client turns them into exceptions.

License

MIT. See LICENSE.


All versions of rikochey-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
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 rikochey/rikochey-php contains the following files

Loading the files please wait ...