Download the PHP package danielstieber/coda-php without Composer

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

CodaPHP

Latest Stable Coda API Version Downloads

CodaPHP is a library that makes it easy to use data from Coda docs in web projects by using the Coda API.

Easily use all available API calls with one library including

Get 10$ discount on Coda paid plans when signing up with this link

Quickstart

Installation and basic usage

Install the library through Composer:

and add it to your project:

Handling table data

Let's assume you have the table 'Products' in your Coda doc:

Products

Title ⚑ Price Status
Goatmilk 14.90 available ▼
Goatmeat 38.90 available ▼

Triggering automations

Since May 2022, Coda automations can be triggered via webhooks – and via CodaPHP. To trigger an automation, the automation must be set to "Webhook invoked". To run the automation you need the doc ID an the ID of the automation rule. You can find the rule ID when you click on the 3 dots (kebap menu) above the rule step settings.

Overview

This is a personal side project. If you have any suggestions, find bugs or want to contribute, don't hesitate to contact me. You can use the offical Coda community to asks questions and reach out as well.

Token

Generate your token in the Coda profile settings. Notice: Everyone with this token has full access to all your docs!

Methods

The method names are inspired by the wording of the official Coda API documentation and are listed below.

Parameters

All parameters can be found in the official Coda API documentation. Just add an associative array with your parameters to selected functions. The parameter useColumnNames is set true by default in all 'row' functions. I list the important ones below.

Response

In case of success, responses are mostly untouched but converted to PHP arrays. Exception is insertRow() function, which provides a boolean true in case of success. In case of an error, the response includes the statusCode and provided error message, also untouched and converted to an array.

Cache data

Every API call may take a few seconds. It is recommended to store results and only call for new when necessary. The library provides a simple caching mechanic to store received data in a .codaphp_cache folder. This mechanic is optional and needs to be activated. Learn more in the caching instructions

Documentation

Docs

Pages (former Folders & Sections)

Tables/Views, Columns and Rows

Working with Views

Since Coda API Version 1.0.0 there are no seperate view methods. All view operations can be done via the table methods.

Pushing Buttons

Formulas and Controls

Manage permissions

Learn more about permission settings with the API here.

Run automations / trigger webhooks

Account and other

Analytics

Caching

The library can cache API requests in JSON files. If caching is activated, the library tries to create a .codaphp_cache folder in your project root. If it can't create or find the folder, it will deactivate caching. You can also create the folder on your own and set CHMOD so the library can read & write files in it. Only doc data & content will be cached, no permissions, links or mutation status!

By default, the cache will expire after 7 days. You can manually change the expiry time.

You can also clear the cache manually

Control cache inside the doc

A simple way to control the cache status from the coda doc is a button that triggers the clear cache method.

Now you can add a "open hyperlink"-button in your doc that opens https://yourdomain.com/?clearCache. After clicking the button the website will receive the latest data and saves it in the cache again. clear cache button

Changelog

0.4.0 (August 28, 2022)

0.3.0 (May 24, 2022)

0.2.0 (January 3, 2021)

0.1.0 (August 15, 2020)

0.0.4 (February 16, 2020)

0.0.3 (March 16, 2019)

0.0.2 (November 15, 2018)

0.0.1 (November 11, 2018)


All versions of coda-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
guzzlehttp/guzzle Version >=6.0
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 danielstieber/coda-php contains the following files

Loading the files please wait ....