{"id":15023594,"url":"https://github.com/yannoff/p-a-w","last_synced_at":"2026-04-07T14:31:56.223Z","repository":{"id":89937733,"uuid":"598798232","full_name":"yannoff/p-a-w","owner":"yannoff","description":"Php Any Where - Run PHP. Any version. Without install.","archived":false,"fork":false,"pushed_at":"2025-11-25T13:29:08.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-29T14:37:07.466Z","etag":null,"topics":["command-line","composer","offenbach","phar","php","php-","php-cli","php-fpm","php-shell","php55","php56","php70","php71","php72","php73","php74","php80","php81","php82","php83-rc"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/yannoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-07T20:37:12.000Z","updated_at":"2025-11-25T13:27:26.000Z","dependencies_parsed_at":"2025-12-27T19:04:50.353Z","dependency_job_id":null,"html_url":"https://github.com/yannoff/p-a-w","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yannoff/p-a-w","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannoff%2Fp-a-w","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannoff%2Fp-a-w/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannoff%2Fp-a-w/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannoff%2Fp-a-w/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannoff","download_url":"https://codeload.github.com/yannoff/p-a-w/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannoff%2Fp-a-w/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["command-line","composer","offenbach","phar","php","php-","php-cli","php-fpm","php-shell","php55","php56","php70","php71","php72","php73","php74","php80","php81","php82","php83-rc"],"created_at":"2024-09-24T19:59:13.798Z","updated_at":"2026-04-07T14:31:56.205Z","avatar_url":"https://github.com/yannoff.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# P A W\n\nRun PHP. Any version. Without install.\n\n## Get it\n\n\u003e _**Important note:** This script is designed to run on Linux and requires [docker](https://docs.docker.com/engine/install/) to be installed._\n\nGet the latest release from github...\n\n```bash\n# $BINDIR may be any of the $PATH directories, eg: ~/bin, /usr/local/bin, etc... \ncurl -Lo $BINDIR/php https://github.com/yannoff/p-a-w/releases/latest/download/php\n# Make the main script executable\nchmod +x $BINDIR/php\n```\n\n...add support for the desired php versions\n\n```bash\nln -s $BINDIR/php $BINDIR/php5.6\nln -s $BINDIR/php $BINDIR/php7.4\nln -s $BINDIR/php $BINDIR/php8.0\n```\n\n..and **that's it !**\n\n## How it works\n\nBased on the  multi-call binary principle (as the well-known [BusyBox](https://busybox.net/about.html) project) , each `php\u003cversion\u003e` **\u003csup\u003e(1)\u003c/sup\u003e** file is just a symlink pointing to the main [`php`](php) entrypoint script: PHP version is deduced from the invoked filename.\n\n\u003e _**\u003csup\u003e(1)\u003c/sup\u003e** If invoked without any suffix, the default version will be used: either the [`PHP_VERSION`](#customizing) env var (if set), the latest GA release (currently 8.5) otherwise._\n\nHence, adding support for a PHP version is dead-simple: just create a new `php\u003cversion\u003e` **\u003csup\u003e(2)\u003c/sup\u003e** symlink to the main [`php`](php) script.\n\n_For example:_\n\n```bash\n# Assume ~/bin is in the $PATH system-wide environment variable\n~/bin $ ln -s php php7.4\n# Now PHP 7.4 can be accessed from everywhere in the system\n~/bin $ cd /some/other/path\n/some/other/path $ php7.4 --version\nPHP 7.4.28 (cli) (built: Mar 29 2022 03:52:02) ( NTS )\nCopyright (c) The PHP Group\nZend Engine v3.4.0, Copyright (c) Zend Technologies\n    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies\n```\n\n\u003e _**\u003csup\u003e(2)\u003c/sup\u003e** Version must be one of the following:\n `5.5`,\n `5.6`,\n `7.0`,\n `7.1`,\n `7.2`,\n `7.3`,\n `7.4`,\n `8.0`,\n `8.1`,\n `8.2`,\n `8.3`,\n `8.4`,\n `8.5`_\n\n## Examples\n\n_The following examples are given assuming that:_\n- _The `php` multi-call script is in one of the `$PATH` dirs_\n- _A symlink to it has been created for each php version_\n\n\n#### Open a php interactive command prompt\n\n_Open a PHP 8.0 interactive shell in the current directory_\n\n```bash\nphp8.0 -a\n```\n\n#### Open a bash session\n\n_Open a PHP 8.2 container-secluded bash session, with access to the current directory_\n\n```bash\nphp8.2\n```\n\n### Customizing\n\n_The following environment variables allow to fine-tune the PAW script behaviour_\n\nName|Description|Fallback value\n---|---|---\n`PHP_VERSION`|The default version to use for `PHP`|`8.5`\n`PAW_IMAGE`|PHP docker image to leverage|[`yannoff/php-fpm`](https://github.com/yannoff/docker-php-fpm) **\u003csup\u003e(3)\u003c/sup\u003e**\n`PAW_DEBUG`|If set, turn on debug mode|-\n\n\u003e _**\u003csup\u003e(3)\u003c/sup\u003e** Based on [Alpine](https://www.alpinelinux.org/), this image uses `musl-libc`, [which implementation differs](https://wiki.musl-libc.org/functional-differences-from-glibc.html) from `glibc` on some aspects._\n\n## Credits\n\nLicensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannoff%2Fp-a-w","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannoff%2Fp-a-w","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannoff%2Fp-a-w/lists"}