PHPackages                             airlst/headless-browser-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. airlst/headless-browser-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

airlst/headless-browser-client
==============================

AirLST Headless Browser PHP Client

3.1.0(1y ago)01.6k—6.3%1MITPHPPHP ^8.3

Since Mar 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/airlst/headless-browser-client-php)[ Packagist](https://packagist.org/packages/airlst/headless-browser-client)[ Docs](https://github.com/airlst/headless-browser-client-php)[ RSS](/packages/airlst-headless-browser-client/feed)WikiDiscussions master Synced today

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

AirLST Headless Browser PHP Client
==================================

[](#airlst-headless-browser-php-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/30c21068ca8283a42b6f8f6d034c56f8d5aaef962a1fe9f8c141dc98f47da92d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6169726c73742f686561646c6573732d62726f777365722d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/airlst/headless-browser-client)[![Total Downloads](https://camo.githubusercontent.com/4344220fa3c3b21df41a60b6bd6f2d59b69d55908a54c801b409be61f27bf282/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6169726c73742f686561646c6573732d62726f777365722d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/airlst/headless-browser-client)

PHP Client to interact with AirLST Headless Browser service.

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

[](#installation)

You can install the package via Composer:

```
composer require airlst/headless-browser-client
```

Usage
-----

[](#usage)

Initialize the headless browser client with your API key.

```
$headlessBrowser = new \AirLST\HeadlessBrowserClient\AirlstHeadlessBrowser('api-key-here');
```

### Generate PDF from HTML

[](#generate-pdf-from-html)

#### Using standard format

[](#using-standard-format)

```
$headlessBrowser->pdf(
    'html', // html content
    [10, 10, 10, 10] // margins
    'A4', // page size
);
```

#### Using custom size

[](#using-custom-size)

```
$headlessBrowser->pdf(
    'html', // html content
    [10, 10, 10, 10] // margins
    null, // Page size must be null otherwise it will override the custom width and height
    '80mm', // width
    '60mm', // height
);
```

### Generate JPEG from HTML

[](#generate-jpeg-from-html)

```
$headlessBrowser->jpeg(
    'html', // html content
    80, // quality
);
```

### Response

[](#response)

All methods return the `\Airlst\HeadlessBrowserClient\Response` object. Provides 2 public methods:

- `temporaryUrl()` - returns a temporary file URL stored in the S3 bucket. Expires in 5 minutes after generation
- `contents()` - downloads file from S3 bucket and returns contents of the file as string

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Orkhan Ahmadov](https://github.com/airlst)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance46

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 92% 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 ~106 days

Total

5

Last Release

407d ago

Major Versions

1.0.1 → 2.0.02024-07-25

2.0.0 → 3.0.02024-11-14

PHP version history (2 changes)1.0.0PHP ^8.2

2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/c82e54991e0224fdc49d34ee60d0cfce5ea0cca1cd59771155e3b372d1fa1d11?d=identicon)[orkhanahmadov](/maintainers/orkhanahmadov)

---

Top Contributors

[![orkhanahmadov](https://avatars.githubusercontent.com/u/7041590?v=4)](https://github.com/orkhanahmadov "orkhanahmadov (23 commits)")[![BilelJellouli](https://avatars.githubusercontent.com/u/20204629?v=4)](https://github.com/BilelJellouli "BilelJellouli (2 commits)")

---

Tags

Headless Browserairlstheadless-browser-clientheadless-browser-client-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/airlst-headless-browser-client/health.svg)

```
[![Health](https://phpackages.com/badges/airlst-headless-browser-client/health.svg)](https://phpackages.com/packages/airlst-headless-browser-client)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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