2017 © Pedro Peláez
 

library phpairplay

image

archfizz/phpairplay

  • Sunday, November 9, 2014
  • by adamelso
  • Repository
  • 2 Watchers
  • 8 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PhpAirPlay

Build Status Scrutinizer Code Quality HHVM Testing, (*1)

Mirror your desktop to an Apple TV device using this PHP command line utility., (*2)

This utility will repeatedly take a screenshot of your desktop and put it on your Apple TV., (*3)

Usage

Just run this command, but replace the IP address 192.168.0.69 with whatever the IP address of your Apple TV is., (*4)

$ php bin/airplay mirror 192.168.0.69

Most of the time, you can simply run., (*5)

$ php bin/airplay mirror Apple-TV.local

Features

Mirroring

Mirroring will repeatedly take a screenshot of your desktop and put it on your Apple TV. Depending on your system, a number of utilities can be used to capture the screenshot., (*6)

Syntax:, (*7)

$ php bin/airplay mirror [host] --utility=[imagemagick|osx|gnome|shutter]

Video Playback

Currently work in progress, this is the next feature of PhpAirPlay., (*8)

Installation

This utility requires the following to be installed on your machine., (*9)

  • PHP 5.4
  • cURL
  • Git
  • Imagemagick

Then run these commands from the terminal to install., (*10)

$ git clone https://github.com/archfizz/phpairplay.git
$ cd phpairplay
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Add to existing Composer project

Add to your composer.json, (*11)

{
    "require": {
        "archfizz/phpairplay": "dev-master"
    },
    "config": {
        "bin-dir": "bin"
    }
}

Then run from the root of your project, (*12)

$ bin/airplay mirror Apple-TV.local

Caution

This was a quick proof-of-concept, so I haven't test-driven this project. The next update will use testing tools, so the commands may change., (*13)

Roadmap

  • Add automated tests (PhpSpec, Behat).
  • Allow any screen capture utility to be used.
  • Allow for advanced configuration.
  • Add functionality for all AirPlay features.

The Versions