Download the PHP package pkgmcp/adb-php without Composer

On this page you can find all versions of the php package pkgmcp/adb-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package adb-php

adb-php

Pure PHP 8.3 ADB client — full port of @devicefarmer/adbkit v3.3.8

PHP ≥ 8.3


What Is This?

adb-php is a complete PHP 8.3+ port of @devicefarmer/adbkit v3.3.8 — a pure Node.js ADB client. No native extensions, no exec('adb ...'). Pure PHP over TCP to the ADB server.

The ADB server must be running (adb start-server). adb-php is a client library.


Requirements


Installation


Quick Start


Full Feature Map

Category Methods Status
Server create(), version(), kill(), connect(), disconnect()
Listing listDevices(), listDevicesWithPaths(), trackDevices()
Info getSerialNo(), getState(), getDevicePath()
Properties getProperties(), getFeatures(), getPackages()
Network getDHCPIpAddress()
Shell shell(command)
Apps install(), installRemote(), uninstall(), isInstalled(), clear()
Intents startActivity(), startService()
Files push(), pull(), stat(), readdir()
SYNC syncService()SyncService (9 methods)
Forwards forward(), listForwards(), reverse(), listReverses()
Transport tcpip(), usb()
Root root(), remount()
Reboot reboot(mode)
Screen screencap(), framebuffer()
Logcat openLogcat(), openLog()
Monkey openMonkey()MonkeyClient (17 methods)
Process openProcStat(), trackJdwp()
Socket openTcp(), openLocal()
Wait waitForDevice(), waitBootComplete()
Attach attach(), detach()
Util parsePublicKey()

Missing Features (Known)

Feature Status Reason
DeviceClient live integration tests 🟡 Medium All methods implemented; tested via mock sockets; live tests need running emulator
SyncService end-to-end with live device 🟡 Medium Binary SYNC protocol fully tested via injected streams; device test needs emulator
LogcatReader live stream test 🟡 Medium Binary frame parsing tested; live stream needs emulator
MonkeyClient live UI automation 🟡 Medium All 17 methods implemented; needs emulator with Monkey server running
trackDevices() live event test 🟡 Low Generator yields events from socket; live test needs physical device plug/unplug
Super partition / LP metadata 🔴 Not in scope Not in upstream adbkit either

📌 All "missing" items are test coverage gaps, not missing functionality. The code is 100% implemented.


PHP 8.3 Features

Feature Count Examples
readonly class 8 classes Device, FileEntry, CpuStats, LogcatEntry, ...
const int / string / array 30+ constants Priority levels, ADB status, SYNC commands
#[Override] 22 methods All transport implementations
Named arguments Throughout new CpuStats(user: 100, nice: 0, ...)
match expression 1 AdbSocket status parsing
never return type 2 Error-throwing helpers

Testing

92 tests across 17 files — 92 pass offline with no device.


File Structure


Credits


License

Apache 2.0 — see LICENSE.


All versions of adb-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pkgmcp/adb-php contains the following files

Loading the files please wait ...