PHPackages                             yeswedev/airtable-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yeswedev/airtable-php

ActiveLibrary

yeswedev/airtable-php
=====================

Manipulate Airtable API using PHP (fork from armetiz)

0.4.4(4y ago)015MITPHPPHP &gt;=7.1

Since Jun 17Pushed 4y agoCompare

[ Source](https://github.com/yeswedev-team/airtable-php)[ Packagist](https://packagist.org/packages/yeswedev/airtable-php)[ Docs](https://github.com/armetiz/airtable-php)[ RSS](/packages/yeswedev-airtable-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (14)Used By (0)

Airtable for PHP
================

[](#airtable-for-php)

Basic SDK to deal with airtable records. Fork from armetiz

Installation
------------

[](#installation)

Tell composer to require this bundle by running:

```
composer require yeswedev/airtable-php
```

Usage
-----

[](#usage)

```
$key   = "APP_KEY"; // Generated from : https://airtable.com/account
$base  = "BASE_ID"; // Find it on : https://airtable.com/api
$table = "TABLE_NAME"; // Find it on : https://airtable.com/api

$airtable = new Airtable($key, $base);

$records = $airtable->findRecords($table);
```

**Available methods**

- Airtable::createTableManipulator(string $table): TableManipulator
- Airtable::getRecord(string $table, string $id)
- Airtable::createRecord(string $table, array $fields)
- Airtable::setRecord(string $table, array $criteria = \[\], array $fields)
- Airtable::updateRecord(string $table, array $criteria = \[\], array $fields)
- Airtable::containsRecord(string $table, array $criteria = \[\])
- Airtable::flushRecords(string $table)
- Airtable::deleteRecord(string $table, array $criteria = \[\])
- Airtable::findRecord(string $table, array $criteria = \[\])
- Airtable::findRecords(string $table, array $criteria = \[\])

Example
-------

[](#example)

Simple member indexer that encapsulate Airtable within simple API. Can be used to start a CRM on Airtable.

Note: Because Airtable doesn't allow schema manipulation using their public API, you should configure table using the WebUI with the following

- Id : text
- Firstname : text
- Lastname : text
- Email : email
- CreatedAt : Date and time
- Picture : Attachments

```
$key   = "APP_KEY"; // Generated from : https://airtable.com/account
$base  = "BASE_ID"; // Find it on : https://airtable.com/api
$table = "TABLE_NAME"; // Find it on : https://airtable.com/api

$airtable = new Airtable($key, $base);

$records = $airtable->findRecords($table);
```

```
use Armetiz\AirtableSDK\Airtable as AirtableClient;

class MemberIndex
{
    private $airtable;

    public function __construct(AirtableClient $airtableClient, string $table)
    {
        $this->airtable = $airtableClient->createTableManipulator($table);
    }

    public function clear()
    {
        $this->airtable->flushRecords();
    }

    public function save(array $data)
    {
        $criteria = ["Id" => $data["id"]];
        $fields   = [
            "Id"                    => $data["id"],
            "Firstname"             => $data["firstName"],
            "Lastname"              => $data["lastName"],
            "Email"                 => $data["email"],
            "CreatedAt"             => (string)$data["createdAt"],
        ];

        if ($this->airtable->containsRecord($criteria)) {
            $this->airtable->updateRecord($criteria, $fields);
        } else {
            $this->airtable->createRecord($fields);
        }
    }

    public function delete($id)
    {
        $this->airtable->deleteRecord(["Id" => $id]);
    }
}
```

Testing
-------

[](#testing)

Not implemented yet.

License
-------

[](#license)

This library is under the MIT license. [See the complete license](https://github.com/armetiz/airtable-php/blob/master/LICENSE).

Credits
-------

[](#credits)

Author - [Thomas Tourlourat](http://www.wozbe.com)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~158 days

Recently: every ~125 days

Total

13

Last Release

1726d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

0.3.2PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27958703?v=4)[Yes We Dev](/maintainers/yeswedev)[@yeswedev](https://github.com/yeswedev)

---

Top Contributors

[![armetiz](https://avatars.githubusercontent.com/u/1119250?v=4)](https://github.com/armetiz "armetiz (20 commits)")[![clement-ywd](https://avatars.githubusercontent.com/u/58551460?v=4)](https://github.com/clement-ywd "clement-ywd (3 commits)")[![yshorg37](https://avatars.githubusercontent.com/u/32308417?v=4)](https://github.com/yshorg37 "yshorg37 (1 commits)")

---

Tags

phpsdkairtable

### Embed Badge

![Health badge](/badges/yeswedev-airtable-php/health.svg)

```
[![Health](https://phpackages.com/badges/yeswedev-airtable-php/health.svg)](https://phpackages.com/packages/yeswedev-airtable-php)
```

###  Alternatives

[armetiz/airtable-php

Manipulate Airtable API using PHP

209.2k](/packages/armetiz-airtable-php)[americanexpress/hyperledger-fabric-sdk-php

Hyperledger Fabric client SDK in PHP

491.3k](/packages/americanexpress-hyperledger-fabric-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
