{"id":15664820,"url":"https://github.com/sof3/pharynx","last_synced_at":"2025-05-12T17:24:28.917Z","repository":{"id":54677682,"uuid":"497064794","full_name":"SOF3/pharynx","owner":"SOF3","description":"A tool to recompile PHP sources into a phar in PSR-0","archived":false,"fork":false,"pushed_at":"2024-10-16T15:10:05.000Z","size":6877,"stargazers_count":18,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T17:24:18.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SOF3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-27T16:26:19.000Z","updated_at":"2024-12-22T23:50:56.000Z","dependencies_parsed_at":"2024-07-09T06:40:37.722Z","dependency_job_id":"06d1d3a9-9da1-4cab-ab39-e387d139b626","html_url":"https://github.com/SOF3/pharynx","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.21739130434782605","last_synced_commit":"4356d8555260d020e898ef2ea86429842748b92a"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2Fpharynx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2Fpharynx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2Fpharynx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2Fpharynx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SOF3","download_url":"https://codeload.github.com/SOF3/pharynx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253785509,"owners_count":21963977,"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":[],"created_at":"2024-10-03T13:44:14.309Z","updated_at":"2025-05-12T17:24:28.890Z","avatar_url":"https://github.com/SOF3.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pharynx\n\nA tool to recompile PHP sources into a phar in PSR-0\n\n```txt\nUSAGE\n  -v           : Enable verbose output.\n  -i PATH      : Equivalent to `-f plugin.yml:PATH/plugin.yml -f PATH/resources -s PATH/src`.\n  -f NAME:PATH : Copy the file or directory at PATH to output/NAME.\n                 `:` is not considered as a separator if immediately followed by a backslash.\n                 Can be passed multiple times.\n  -s PATH      : Use the directory at PATH as a source root.\n                 Can be passed multiple times\n  -r NAME      : The path of the source root in the output.\n                 Default `src`.\n  -o PATH      : Store the output in directory form at PATH.\n  -p[=PATH]    : Pack the output in phar form at PATH.\n                 If no value is given, uses the path in `-o` followed by `.phar`.\n                 If neither -o nor -p are passed, or only `-p` is passed but without values,\n                 `-p output.phar` is assumed.\n  -a ANTIGEN   : The virion antigens to shade.\n                 Can be passed multiple times\n  -c[=PATH]    : Infer source paths and antigens from composer.\n                 Assumes that `composer install` was already run.\n                 If a value is not provided, uses the same path as `-i`.\n                 Otherwise, PATH should be the path to the directory containing composer.json.\n\nEXAMPLES\n  Package a plugin phar:\n  $ php pharynx.phar -i path/to/your/plugin -p my-plugin.phar\n\n  Package a plugin phar with composer virion dependencies:\n  $ php pharynx.phar -i path/to/your/plugin -c -p my-plugin.phar\n\n  Bundle output to a directory without building phar\n  $ php pharynx.phar -i path/to/your/plugin -o output\n\n  Package a plugin phar to output.phar, along with generated files in a gen directory:\n  $ php pharynx.phar -i path/to/your/plugin -s path/to/gen\n\n```\n\n## Use with PocketMine plugins\n\nDownload start.cmd/start.sh, pharynx.phar and bootstrap-plugin-dev.php from [releases](https://github.com/SOF3/pharynx/releases)\nand copy them to your PocketMine install directory.\nReplace PocketMine's start.cmd/start.sh with the one you downloaded.\nEdit start.sh/start.cmd and change `\"plugin_source/MyPlugin\"` to the plugin(s) to build with pharynx\n(only start.sh supports multiple plugins).\nThen just start the server as usual!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsof3%2Fpharynx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsof3%2Fpharynx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsof3%2Fpharynx/lists"}