{"id":13462189,"url":"https://github.com/wells/airflix","last_synced_at":"2025-12-29T23:54:13.773Z","repository":{"id":56942965,"uuid":"64172532","full_name":"wells/airflix","owner":"wells","description":"🍿 An AirPlay friendly web interface to stream your movies and TV shows from a home server.","archived":false,"fork":false,"pushed_at":"2018-07-07T21:25:04.000Z","size":6515,"stargazers_count":439,"open_issues_count":3,"forks_count":80,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-10-29T11:10:50.972Z","etag":null,"topics":["airplay","laravel","vue"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wells.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-25T22:39:56.000Z","updated_at":"2024-10-04T21:32:22.000Z","dependencies_parsed_at":"2022-08-21T07:50:49.411Z","dependency_job_id":null,"html_url":"https://github.com/wells/airflix","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wells%2Fairflix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wells%2Fairflix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wells%2Fairflix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wells%2Fairflix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wells","download_url":"https://codeload.github.com/wells/airflix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245381999,"owners_count":20606140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airplay","laravel","vue"],"created_at":"2024-07-31T12:00:41.703Z","updated_at":"2025-12-29T23:54:13.735Z","avatar_url":"https://github.com/wells.png","language":"PHP","funding_links":[],"categories":["Laravel","PHP","Resources"],"sub_categories":["Example Applications"],"readme":"# Airflix\n\n[![Build Status](https://travis-ci.org/wells/airflix.svg)](https://travis-ci.org/wells/airflix)\n[![Total Downloads](https://poser.pugx.org/airflix/airflix/d/total.svg)](https://packagist.org/packages/airflix/airflix)\n[![Latest Stable Version](https://poser.pugx.org/airflix/airflix/v/stable.svg)](https://packagist.org/packages/airflix/airflix)\n[![License](https://poser.pugx.org/airflix/airflix/license.svg)](https://packagist.org/packages/airflix/airflix)\n\nAirflix is a web application for browsing and playing movies and TV shows from a local home server. The overall goal of the project is to provide a beautiful HTTP interface to AirPlay or Chromecast media onto your TV screen from a phone or tablet.\n\n![Airflix Demo](https://raw.githubusercontent.com/wells/airflix/master/public/airflix-demo.gif)\n\n## Installation\n\nYou can download Airflix either through GitHub or composer.\n\n### Via GitHub\n\n```\n$ git clone --depth=1 git@github.com:wells/airflix.git airflix.local\n```\n\n### Via Composer Create-Project\n\nYou may also install Airflix by issuing the Composer create-project command in your terminal:\n\n```\n$ composer create-project --prefer-dist airflix/airflix airflix.local\n```\n\n### Recommended Servers\n\nWe recommend that you use the following servers to run Airflix.\n\n- [nginx web server](https://www.nginx.com/)\n- [MariaDB database server](https://mariadb.com/)\n- [Redis server](http://redis.io/)\n\nWhen trying this application out in a development environment, please note that Laravel Valet currently does not play video files. We recommend you either use Laravel Homestead or a local install of nginx (i.e. from homebrew). Hopefully this will change soon, so we can [ngrok](https://ngrok.com/) our Airflix installs. You could always just setup a [tinc](http://tinc-vpn.org/) VPN with some [avahi](https://en.wikipedia.org/wiki/Avahi_%28software%29) for your home network.\n\n### Create a Database\n\nWe recommend you use a database with `utf8mb4` encoding and `utf8mb4_unicode_520_ci` collation. Make sure you also update your `.env` file with your database credentials and other configuration options.\n\n### Apply for an API Token\n\nAirflix requires an API token from [themoviedb.org](https://www.themoviedb.org/) to gather information and images. You will need to create an account and apply there to acquire a key for access to this API.\n\n### Configuration\n\nOnce you have an API key ready to use, you can simply run `php artisan airflix:install` to run migrations, configure your folders, and enter API keys. This command will also perform an initial scan of your movies and TV shows folders for content, which will take time on the first run.\n\n## Documentation\n\nAirflix has [api documentation](http://docs.airflix.apiary.io/).\n\n### Folders\n\nThe folders that contain movies and TV shows follow certain naming conventions. \n\nEach movie is contained inside a folder named with either the movie title (i.e. `/Films/Serenity/Serenity.m4v`) or the movie title with the release year in parenthesis (i.e. `/Films/Avatar (2009)/Avatar (2009).m4v`).\n\nTV Shows are contained inside a folder with a similar naming convention to a movie, except each episode file has a `S##E##.m4v` naming format (i.e. `/TV Shows/Stargate Atlantis/S01E01.m4v`).\n\nIf you use a different file extension from `m4v` (i.e. `mp4`) for your video files, you can edit the `AIRFLIX_EXTENSIONS_VIDEO` in your `.env` file.\n\n### Jobs\n\nWe recommend you run `redis-server` on your home server so that Airflix can queue up jobs. This is required for the Settings page to function properly.\n\nPlease see the [Laravel documentation](https://laravel.com/docs/5.2/queues#running-the-queue-listener) to learn how to setup a queue daemon. We recommend limiting to one `queue:work` process since most of the jobs are synchronous in nature. \n\nWe have provided a sample `/etc/supervisor/conf.d/airflix-worker.conf` file below:\n\n```\n[program:airflix-worker]\nprocess_name=%(program_name)s_%(process_num)02d\ncommand=php /srv/www/airflix.local/current/artisan queue:work redis --sleep=3 --tries=3 --daemon\nautostart=true\nautorestart=true\nuser=www-data\nnumprocs=1\nredirect_stderr=true\nstdout_logfile=/srv/www/airflix.local/storage/logs/airflix-worker.log\n```\n\n### Schedule\n\nAirflix has a number of scheduled tasks to refresh your folder list on a weekly basis. Just add something like the following into your server's cron:\n\n```\n* * * * * php /srv/www/airflix.local/current/artisan schedule:run \u003e\u003e /dev/null 2\u003e\u00261\n```\n\n### Commands\n\nWe have provided a number of Laravel Artisan commands including `airflix:history`, `airflix:install`, `airflix:folders`, `airflix:genres`, `airflix:movies`, `airflix:shows`, and `airflix:keys`. For more information about each command, you can run `php artisan help \u003ccommand\u003e` to find out what options are available for each command.\n\n## Testing\n\n``` bash\n$ phpunit\n```\n\n## License\n\nAirflix is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwells%2Fairflix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwells%2Fairflix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwells%2Fairflix/lists"}