PHPackages                             imdhemy/google-play-billing - 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. [Payment Processing](/categories/payments)
4. /
5. imdhemy/google-play-billing

ActiveLibrary[Payment Processing](/categories/payments)

imdhemy/google-play-billing
===========================

Google Play Billing

1.12.2(2mo ago)491.3M↓13.5%33[7 issues](https://github.com/imdhemy/google-play-billing/issues)[5 PRs](https://github.com/imdhemy/google-play-billing/pulls)5MITPHPPHP &gt;=8.4CI passing

Since Oct 19Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/imdhemy/google-play-billing)[ Packagist](https://packagist.org/packages/imdhemy/google-play-billing)[ RSS](/packages/imdhemy-google-play-billing/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (23)Versions (52)Used By (5)

[![Appstore IAP documentation](logo.png)](https://imdhemy.com/laravel-iap-docs/docs/google-play-billing/intro)

[![Packagist PHP Version Support](https://camo.githubusercontent.com/111bb7a2dc330bf5a390d46a3d64b853d1bbf9a547ae8e2e72507f8535dbc417/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696d6468656d792f676f6f676c652d706c61792d62696c6c696e67)](https://camo.githubusercontent.com/111bb7a2dc330bf5a390d46a3d64b853d1bbf9a547ae8e2e72507f8535dbc417/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696d6468656d792f676f6f676c652d706c61792d62696c6c696e67)[![Total Downloads](https://camo.githubusercontent.com/23ee3f0b7402b6cfad6fa95bbe1f35f0da562583cfe9b4fc99be0a245c1691a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696d6468656d792f676f6f676c652d706c61792d62696c6c696e67)](https://packagist.org/packages/imdhemy/google-play-billing)[![Latest Stable Version](https://camo.githubusercontent.com/2f948b2c8082978e3fb745fa5c03634aee82da2c1dd5b50b82eb94ce78a3f2e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696d6468656d792f676f6f676c652d706c61792d62696c6c696e67)](https://packagist.org/packages/imdhemy/google-play-billing)[![License](https://camo.githubusercontent.com/fb3bfdc98b9e1966ab9166d876e0c1c5ab443dfd377c47e0ca38ef8b35089e40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696d6468656d792f676f6f676c652d706c61792d62696c6c696e67)](https://packagist.org/packages/imdhemy/google-play-billing)[![Continuous Integration](https://github.com/imdhemy/google-play-billing/actions/workflows/ci.yaml/badge.svg)](https://github.com/imdhemy/google-play-billing/actions/workflows/ci.yaml)

PHP Google Play In-App Purchases
--------------------------------

[](#php-google-play-in-app-purchases)

[![Billing-related endpoints provided by the Google Play Developer API.](diagram.png)](diagram.png)

**Google Play Billing** for PHP provides a clean, developer-friendly to interact with . This package is ideal for applications that need validate purchases, manage subscriptions and interact with Google Play Product Catalog.

### Features

[](#features)

- Simple integration with the Google Play Developer API
- Support for purchase and subscription validation
- Handles authentication using Google service accounts
- Lightweight, extensible, and framework-agnostic

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

[](#installation)

Use composer

```
composer require imdhemy/google-play-billing

```

Getting Started
---------------

[](#getting-started)

Refer to the documentation in the [docs](docs/README.md#php-google-play-in-app-purchase-google-play-billing) for setup instructions, configuration, and usage examples.

Requirements
------------

[](#requirements)

- PHP 8.4 or higher
- Google Cloud project with access to the Android Publisher API
- A service account with appropriate permissions

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

[](#contributing)

- Feel free to check the [contributing guide](/CONTRIBUTING.md).
- Here is the developer guide to help you get started with the codebase: [Developer guide](/DEVELOPER_GUIDE.md).
- You still have questions? Drop them in the [discussions tab](https://github.com/imdhemy/google-play-billing/discussions).

License
-------

[](#license)

The App Store IAP is an open-sourced software licensed under the [MIT license](./LICENSE.md).

###  Health Score

68

—

FairBetter than 100% of packages

Maintenance85

Actively maintained with recent releases

Popularity55

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.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 ~48 days

Recently: every ~34 days

Total

42

Last Release

65d ago

Major Versions

0.x-dev → 1.0.02022-03-19

PHP version history (7 changes)0.1.0PHP ^7.1

0.3.2PHP &gt;=7.1

1.0.0PHP &gt;=7.3

1.0.2PHP &gt;=7.4

1.4.0PHP &gt;=8.0

1.6.0PHP &gt;=8.3

1.12.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/22a24571a8060dbc3e646a409d2274086f755e57dc0aa3eba2ba37d51b6fd84b?d=identicon)[imdhemy](/maintainers/imdhemy)

---

Top Contributors

[![imdhemy](https://avatars.githubusercontent.com/u/22864831?v=4)](https://github.com/imdhemy "imdhemy (282 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (81 commits)")[![EmanFateen](https://avatars.githubusercontent.com/u/12045094?v=4)](https://github.com/EmanFateen "EmanFateen (8 commits)")[![sir-gims](https://avatars.githubusercontent.com/u/44379437?v=4)](https://github.com/sir-gims "sir-gims (5 commits)")[![BernhardtD](https://avatars.githubusercontent.com/u/16192489?v=4)](https://github.com/BernhardtD "BernhardtD (3 commits)")[![ABDELAZIZEZZT](https://avatars.githubusercontent.com/u/97923742?v=4)](https://github.com/ABDELAZIZEZZT "ABDELAZIZEZZT (3 commits)")[![panchograblev](https://avatars.githubusercontent.com/u/965944?v=4)](https://github.com/panchograblev "panchograblev (2 commits)")[![Elsenosy](https://avatars.githubusercontent.com/u/15252103?v=4)](https://github.com/Elsenosy "Elsenosy (1 commits)")[![mikemellor11](https://avatars.githubusercontent.com/u/6986032?v=4)](https://github.com/mikemellor11 "mikemellor11 (1 commits)")[![monurakkaya](https://avatars.githubusercontent.com/u/10274803?v=4)](https://github.com/monurakkaya "monurakkaya (1 commits)")[![michavie](https://avatars.githubusercontent.com/u/39144548?v=4)](https://github.com/michavie "michavie (1 commits)")[![gjuric](https://avatars.githubusercontent.com/u/223015?v=4)](https://github.com/gjuric "gjuric (1 commits)")[![lolitototo](https://avatars.githubusercontent.com/u/131805117?v=4)](https://github.com/lolitototo "lolitototo (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/imdhemy-google-play-billing/health.svg)

```
[![Health](https://phpackages.com/badges/imdhemy-google-play-billing/health.svg)](https://phpackages.com/packages/imdhemy-google-play-billing)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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