{"id":23062487,"url":"https://github.com/aymdev/lodophp","last_synced_at":"2026-04-09T20:45:43.633Z","repository":{"id":104339641,"uuid":"456599100","full_name":"AymDev/LodoPHP","owner":"AymDev","description":"Local Docker setup to use PHP CLI without installing it on the host OS.","archived":false,"fork":false,"pushed_at":"2022-02-07T23:02:30.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T21:16:38.630Z","etag":null,"topics":["docker","localdevelopment","php"],"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/AymDev.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-02-07T17:03:46.000Z","updated_at":"2022-02-07T18:09:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"8010c79c-1b65-418b-bb5c-2297844c2b2b","html_url":"https://github.com/AymDev/LodoPHP","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymDev%2FLodoPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymDev%2FLodoPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymDev%2FLodoPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymDev%2FLodoPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AymDev","download_url":"https://codeload.github.com/AymDev/LodoPHP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246955193,"owners_count":20860227,"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":["docker","localdevelopment","php"],"created_at":"2024-12-16T03:27:16.403Z","updated_at":"2026-04-09T20:45:43.583Z","avatar_url":"https://github.com/AymDev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lodo PHP\n\nLocal **Docker** setup to use **PHP CLI** without installing it on the host OS.\nIt provides **Composer 2** and **PHP** from **7.1** to **8.1**.\n\n**Requirements:**\n\n - **make**\n - **Docker** with **BuildKit** support\n\n\u003eOr you can just copy and edit what's in the **Makefile**.\n\n## Installation\n\nClone the repository, then run `make setup` to build the *Docker images* and create the **Composer** cache directory.\nThen add a `source` command to your `~/.bashrc` file:\n```shell\nsource ~/path/to/LodoPHP/bash_aliases\n```\n\n## Usage\n\nThe default **PHP** version is **7.4**, the default **Composer** version is **2**. To use a specific **PHP** version use `phpX.Y` or `composerX.Y`:\n```shell\n# PHP 7.4\nphp --version\n# PHP 8.1\nphp8.1 --version\n# Composer 2 using PHP 8.1\ncomposer8.1 install\n```\n\n## Configuration\n\nTo change the default **PHP** version, change the **bash_aliases** file:\n```shell\nalias php='phpX.Y'\nalias composer='composerX.Y'\n```\n\nYou can also create a **lodo.conf** file in the repository and then rebuild the images:\n```shell\nmake build\n```\n\n### Install additionnal PHP extensions:\n\n```conf\nextensions=\"pdo_mysql xdebug\"\n```\n\u003eRefer to the\n[mlocati/docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer#supported-php-extensions)\nsupport table.\n\n### Define the Composer version\n\n```conf\ncomposer_version=\"2.2.6\"\n```\n\u003eRefer to the [Composer image tags](https://hub.docker.com/_/composer) on Docker Hub.\n\n## How it works\n\n**PHP** *Docker images* are built using `cli-alpine` base images, installing **Composer**.\n*Bash aliases* are used to call the right **Docker** commands to create a container. Every container is removed when stopped,\nuses the host *UID:GID* and the host network. The current directory is mounted into the container.\nAdditionnally for **Composer**, a cache directory is mounted into the container too.\n\n## Future targets\n\n**Lodo** is functional but still looks like a draft. To make it easier to use, here are the few feature ideas to implement:\n\n - **PHP** version switch from the command line ([nvm](https://github.com/nvm-sh/nvm) style)\n - packaging as a single binary\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymdev%2Flodophp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faymdev%2Flodophp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymdev%2Flodophp/lists"}