PHPackages                             wilsonatb/nativephp-in-app-reviews - 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. [API Development](/categories/api)
4. /
5. wilsonatb/nativephp-in-app-reviews

ActiveNativephp-plugin[API Development](/categories/api)

wilsonatb/nativephp-in-app-reviews
==================================

In-App Reviews API

1.0.4(2mo ago)7131MITPHPPHP ^8.2CI failing

Since Feb 23Pushed 2mo agoCompare

[ Source](https://github.com/wilsonatb/nativephp-in-app-reviews)[ Packagist](https://packagist.org/packages/wilsonatb/nativephp-in-app-reviews)[ RSS](/packages/wilsonatb-nativephp-in-app-reviews/feed)WikiDiscussions main Synced today

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

InAppReviews Plugin for NativePHP Mobile
========================================

[](#inappreviews-plugin-for-nativephp-mobile)

NativePHP plugin for requesting app reviews on Android (Google Play) and iOS (App Store).

[![PHP Version](https://camo.githubusercontent.com/8971dcdb118336971e6cdb0d6c704f1693099e8b36391d28f630faf657320caa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f77696c736f6e6174622f6e61746976657068702d696e2d6170702d726576696577732e7376673f636f6c6f723d626c7565)](https://packagist.org/packages/wilsonatb/nativephp-in-app-reviews)[![Downloads](https://camo.githubusercontent.com/406b3db77f9b203f14271a1462cda24a173e2cab20aceabfd4fd02dde943d1bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696c736f6e6174622f6e61746976657068702d696e2d6170702d726576696577732e7376673f636f6c6f723d726564)](https://packagist.org/packages/wilsonatb/nativephp-in-app-reviews)[![License](https://camo.githubusercontent.com/637668b3e1da636e1b59f0003700d35bf264cb95455dd92fec621d19f7617d53/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77696c736f6e6174622f6e61746976657068702d696e2d6170702d726576696577732e7376673f636f6c6f723d677265656e)](https://packagist.org/packages/wilsonatb/nativephp-in-app-reviews)

Screenshots
-----------

[](#screenshots)

 [![iOS In-App Review Prompt](https://private-user-images.githubusercontent.com/55840381/579365031-9d9d675c-1c88-4103-a92d-c36804a57c26.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2NzE4OTUsIm5iZiI6MTc4MjY3MTU5NSwicGF0aCI6Ii81NTg0MDM4MS81NzkzNjUwMzEtOWQ5ZDY3NWMtMWM4OC00MTAzLWE5MmQtYzM2ODA0YTU3YzI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjI4VDE4MzMxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI2NGUzZDgzMDhiNGJkNDVmOGNmYTA3NWQ2MGIwZmUwNmJhNTBlN2ExNDEyZGRhNGIzOGNmY2Y3M2U1MDg0ODImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.4pNIE8hRX_OvqB2ChFp37VDNYqgDhD1oJKK-RX0Wgb8)](https://private-user-images.githubusercontent.com/55840381/579365031-9d9d675c-1c88-4103-a92d-c36804a57c26.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2NzE4OTUsIm5iZiI6MTc4MjY3MTU5NSwicGF0aCI6Ii81NTg0MDM4MS81NzkzNjUwMzEtOWQ5ZDY3NWMtMWM4OC00MTAzLWE5MmQtYzM2ODA0YTU3YzI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjI4VDE4MzMxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI2NGUzZDgzMDhiNGJkNDVmOGNmYTA3NWQ2MGIwZmUwNmJhNTBlN2ExNDEyZGRhNGIzOGNmY2Y3M2U1MDg0ODImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.4pNIE8hRX_OvqB2ChFp37VDNYqgDhD1oJKK-RX0Wgb8)

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

[](#installation)

```
composer require wilsonatb/nativephp-in-app-reviews

php artisan native:plugin:register wilsonatb/nativephp-in-app-reviews
```

Usage (PHP)
-----------

[](#usage-php)

### Basic Usage

[](#basic-usage)

```
use Nativephp\InAppReviews\Facades\InAppReviews;

// Request app review flow
$result = InAppReviews::requestReview();

// Result contains status information
// $result->status = 'review_process_started'
```

### In Livewire Components

[](#in-livewire-components)

```
use Livewire\Component;
use Nativephp\InAppReviews\Facades\InAppReviews;

class ReviewComponent extends Component
{
    public ?string $reviewStatus = null;

    public function requestReview(): void
    {
        $result = InAppReviews::requestReview();
        $this->reviewStatus = $result->status ?? 'unknown';
    }

    public function render()
    {
        return view('livewire.review-component');
    }
}
```

Usage (JavaScript)
------------------

[](#usage-javascript)

### In Vue/React Components (Inertia)

[](#in-vuereact-components-inertia)

```
import { requestReview } from './vendor/nativephp/in-app-reviews/resources/js/InAppReviews.js';

// Request review flow
async function requestAppReview() {
    try {
        const result = await requestReview();
        console.log('Review process started:', result.status);
    } catch (error) {
        console.error('Failed to request review:', error);
    }
}
```

### Available JavaScript Functions

[](#available-javascript-functions)

- `requestReview()`: Requests the app review flow

Available Methods
-----------------

[](#available-methods)

### PHP Facade Methods

[](#php-facade-methods)

- `InAppReviews::requestReview(): ?object` - Requests the app review flow
    - Returns: Object with `status` property
    - Platform-specific behavior:
        - **Android**: Launches Google Play In-App Review flow
        - **iOS**: Requests App Store Review using StoreKit

Required Permissions
--------------------

[](#required-permissions)

No additional permissions required. Both Google Play In-App Review and App Store Review use system-provided dialogs.

Platform-Specific Behavior
--------------------------

[](#platform-specific-behavior)

### Android

[](#android)

- Uses Google Play In-App Review API (com.google.android.play:review:2.0.2)
- Minimum Android SDK version: 30
- The review dialog is shown by Google Play services
- User can rate the app without leaving your app

### iOS

[](#ios)

- Uses StoreKit's modern AppStore.requestReview API (with fallbacks for older versions)
- Minimum iOS version: 16.0
- The review request is managed by iOS
- Apple may limit how often the prompt appears

Testing on Real Devices
-----------------------

[](#testing-on-real-devices)

### Android Testing

[](#android-testing)

- Test on a physical Android device (not just emulator)
- Google Play In-App Review requires the app to be published in Google Play (internal/alpha/beta track)
- Use [Google Play internal testing track](https://support.google.com/googleplay/android-developer/answer/9845334) for development

### iOS Testing

[](#ios-testing)

- Test on a physical iPhone/iPad
- App Store Review requires the app to be published in TestFlight
- Use [TestFlight](https://developer.apple.com/testflight/) for development

Frontend Stack Compatibility
----------------------------

[](#frontend-stack-compatibility)

Tested with:

- ✅ Livewire v3
- ✅ Livewire v4
- ✅ Inertia + Vue 3
- ✅ Inertia + React

Environment Variables
---------------------

[](#environment-variables)

No environment variables required.

Support
-------

[](#support)

For issues, questions, or feature requests:

- **Email:**
- **GitHub Issues:** [Issues](https://github.com/wilsonatb/nativephp-in-app-reviews/issues)

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance85

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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 ~11 days

Total

5

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f3a2ba30173b1230d9768f931bd8dd2afcbbec87cd9eed8586968d2fed0aedf?d=identicon)[wilsonatb](/maintainers/wilsonatb)

---

Top Contributors

[![wilsonatb](https://avatars.githubusercontent.com/u/55840381?v=4)](https://github.com/wilsonatb "wilsonatb (27 commits)")

---

Tags

mobile-appnativephp-mobilenativephp-pluginphp

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/wilsonatb-nativephp-in-app-reviews/health.svg)

```
[![Health](https://phpackages.com/badges/wilsonatb-nativephp-in-app-reviews/health.svg)](https://phpackages.com/packages/wilsonatb-nativephp-in-app-reviews)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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