PHPackages                             aquachocomint/zxtouch-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aquachocomint/zxtouch-php

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

aquachocomint/zxtouch-php
=========================

A library to communicate with ZXTouch written in PHP

1.1.0(3y ago)36[1 issues](https://github.com/AquaChocomint/ZXTouch-PHP/issues)MITPHPPHP ^8.0

Since Nov 3Pushed 3y ago2 watchersCompare

[ Source](https://github.com/AquaChocomint/ZXTouch-PHP)[ Packagist](https://packagist.org/packages/aquachocomint/zxtouch-php)[ RSS](/packages/aquachocomint-zxtouch-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

ZXTouch-PHP
===========

[](#zxtouch-php)

A library to communicate with ZXTouch written in PHP

General
-------

[](#general)

This library enables to communicate with [ZXTouch](https://github.com/xuan32546/IOS13-SimulateTouch) Tweak in PHP language.

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

[](#installation)

This library requires php 8.0 or higher. The recommended way to install ZXTouch-PHP is Composer.

```
$ composer require aquachocomint/zxtouch-php
```

Basic Usage
-----------

[](#basic-usage)

```
require 'vendor/autoload.php';

$zxtouch = new \zxtouch\ZXTouch("127.0.0.1"); //Connect to the device that is running ZXTouch
$coords = new \zxtouch\element\Coordinates(500, 750); //We will touch the screen at this point

//Touch a screen
$zxtouch->touch(new \zxtouch\element\touch\TouchDown(1, $coords));
usleep(800000); //Wait for 0.8 seconds
$zxtouch->touch(new \zxtouch\element\touch\TouchUp(1, $coords));

//But you can tap a screen without these codes. Just call `\zxtouch\ZXTouch::tap()` method. (required v1.2.0 or higher)

$zxtouch->getConnection()->disconnect(); //Disconnect from the device
```

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

[](#documentation)

This documentation doesn't show all the functions. To get more information, please see the source code as it is self-documented.

### ZXTouch

[](#zxtouch)

First, you need to create `zxtouch\ZXTouch` instance to control your device. You can create an instance like:

```
$zxtouch = new \zxtouch\ZXTouch("127.0.0.1"); //"127.0.0.1" is the ip address to connect the device
```

### Tap a screen

[](#tap-a-screen)

You can tap your device using the `\zxtouch\ZXTouch::tap()` method.

```
$point = new \zxtouch\element\Coordinates(20, 50); //We will tap this point
$zxtouch->tap($point);
```

### Getting Screen Size Information

[](#getting-screen-size-information)

You can get the screen size information using the `\zxtouch\ZXTouch::getScreenSize()` method.

```
$screen = $zxtouch->getScreenSize(); //This will return \zxtouch\result\ScreenSizeResult
var_dump($screen->getWidth(), $screen->getHeight()); //It will print width and height information
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

1268d ago

### Community

Maintainers

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

---

Top Contributors

[![AquaChocomint](https://avatars.githubusercontent.com/u/102673412?v=4)](https://github.com/AquaChocomint "AquaChocomint (16 commits)")

---

Tags

zxtouchautotouch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aquachocomint-zxtouch-php/health.svg)

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

###  Alternatives

[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)

PHPackages © 2026

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