PHPackages                             turkeryildirim/figma-api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. turkeryildirim/figma-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

turkeryildirim/figma-api
========================

PHP library for Figma API

v1.0.1(11mo ago)111[2 PRs](https://github.com/turkeryildirim/php-figma-api/pulls)MITPHPPHP &gt;=8.1CI passing

Since May 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/turkeryildirim/php-figma-api)[ Packagist](https://packagist.org/packages/turkeryildirim/figma-api)[ RSS](/packages/turkeryildirim-figma-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

PHP Library for Figma Rest API
==============================

[](#php-library-for-figma-rest-api)

A PHP library for Figma's rest API but does not cover all endpoints and properties "fully".

Description
-----------

[](#description)

This library was developed for the Figma REST API, but it doesn't support all API endpoints and properties. This is because some endpoints are only accessible to enterprise accounts, and since I don't have access to such an account, these endpoints were disregarded.

Due to inconsistencies in property naming across various endpoints (e.g., style\_type and styleType), all naming conventions used within this library have been standardized to camel case, rather than adhering to the existing inconsistent naming in the API.

Supported API endpoints
-----------------------

[](#supported-api-endpoints)

- Comments
- Reactions
- Components
- Component Sets
- Files
- Projects
- Styles
- Users
- Version history

Disregarded API endpoints
-------------------------

[](#disregarded-api-endpoints)

- Webhooks
- Activity logs
- Payments
- Variables
- Dev resources
- Library analytics

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

[](#installation)

You can install php figma api library using Composer:

```
composer require turkeryildirim/figma-api

```

You will then need to:

- run `composer install` to get these dependencies added to your vendor directory
- add the autoloader to your application with this line: `require("vendor/autoload.php")`

Documentation
-------------

[](#documentation)

You can read more details about API endpoints and properties from [official Figma rest api documentation](https://www.figma.com/developers/api).

All fields are populated with response data received from the API endpoint, ensuring consistency with the designated data type. For instance, if a field is defined as a boolean, but the response data from the endpoint returns it as a string (e.g., "remote": "false"), it will still be converted to a boolean data type.

All empty fields in the response data (whether null or empty) are converted to null, regardless of the field’s original type. For example, the children field is defined as an array but if the response data returns an empty array, this field will be marked as null.

Fields that are defined for the relevant response but are absent from the response data will also be marked as null (e.g., user email).

By default all GET responses are stored into array cache driver for 5 minutes. You can pass your own cache driver, just check out samples folder.

Also almost every action are stored as a log with default Monolog driver and ErrorLogHandler. You can pass your own driver, just check out samples folder.

How to use
----------

[](#how-to-use)

Just check out [samples](https://github.com/turkeryildirim/php-figma-api/tree/main/samples)and [tests](https://github.com/turkeryildirim/php-figma-api/tree/main/test)

License
-------

[](#license)

PHP library for Figma rest api is licensed under [MIT](https://github.com/turkeryildirim/php-figma-api/blob/main/LICENSE).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance68

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

344d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36629313999785442caa59533aef1360561364e12fe14b391b4cf5679994d0d9?d=identicon)[turkeryildirim](/maintainers/turkeryildirim)

---

Top Contributors

[![turkeryildirim](https://avatars.githubusercontent.com/u/5302904?v=4)](https://github.com/turkeryildirim "turkeryildirim (32 commits)")

---

Tags

apifigmalibraryphprestrest-apiwrapperphpapirestlibraryfigma

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/turkeryildirim-figma-api/health.svg)

```
[![Health](https://phpackages.com/badges/turkeryildirim-figma-api/health.svg)](https://phpackages.com/packages/turkeryildirim-figma-api)
```

###  Alternatives

[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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