Download the PHP package sleiman/airtable-php without Composer
On this page you can find all versions of the php package sleiman/airtable-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sleiman/airtable-php
More information about sleiman/airtable-php
Files in sleiman/airtable-php
Package airtable-php
Short Description A PHP wrapper for the Airtable API
License MIT
Informations about the package airtable-php
Airtable PHP client
A PHP client for the Airtable API. Comments, requests or bug reports are appreciated.
View examples
Get started
Please note that Airtable doesn't allow schema manipulation using their public API, you have to create your tables using their interface.
Once you created your base in the Airtable Interface open the API Docs to get your Base ID.
The Base ID is a code that starts with 'app' followed by a mix of letter or numbers (appsvqGDFCwLC3I10).
Installation
If you're using Composer, you can run the following command:
You can also download them directly and extract them to your web directory.
Add the wrapper to your project
If you're using Composer, run the autoloader
Or include the Airtable.php file
Initialize the class
Get all entries in table
We are getting all the entries from the table "Contacts".
Use params to filter, sort, etc
Create new entry
We will create new entry in the table Contacts
Batch Create now available, documentation available below
Update Contact
Use the entry ID to update the entry
Batch Update now available, documentation available below
Expended Relationships (eager loading)
The response will include all the information of record linked to from another table. In this example, with a single call, the field "Customer Details" will be filled with relations of "Customer Details" table.
When you don't pass an associative array, we assume that the field and the table name are the same.
If for some reasons the name of the field differs from the name of the table, you can pass an associative array instead.
We heard you like to expend your relationships, so now you can expend your expended relationships. The following is possible.
But be aware that loading too many relationships can increase the response time considerably.
Delete entry
Use the entry ID to delete the entry
Batch Delete now available, documentation available below
Quick Check (new)
Find a record or many with one line. It's useful when you want to know if a user is already registered or if the same SKU is used. The response will return "count" and "records".
Batch Create, Update, Delete
Airtable API now allows to create, update, and delete 10 records per API request.
Create
Update
Delete
Credits
Copyright (c) 2019 - Programmed by Sleiman Tanios & Guillaume Laliberté