{"id":20235312,"url":"https://github.com/phphleb/cli-completion","last_synced_at":"2026-02-12T10:33:25.878Z","repository":{"id":258335686,"uuid":"874729874","full_name":"phphleb/cli-completion","owner":"phphleb","description":"Autocompletion in the console for HLEB2 framework commands","archived":false,"fork":false,"pushed_at":"2024-10-19T13:20:35.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T01:36:30.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/phphleb.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}},"created_at":"2024-10-18T11:05:10.000Z","updated_at":"2024-10-19T13:20:38.000Z","dependencies_parsed_at":"2025-04-10T18:54:52.131Z","dependency_job_id":"5b82201f-1167-4655-9897-3296e2fa2333","html_url":"https://github.com/phphleb/cli-completion","commit_stats":null,"previous_names":["phphleb/cli-completion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phphleb/cli-completion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphleb%2Fcli-completion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphleb%2Fcli-completion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphleb%2Fcli-completion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphleb%2Fcli-completion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phphleb","download_url":"https://codeload.github.com/phphleb/cli-completion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phphleb%2Fcli-completion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29363162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: 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":[],"created_at":"2024-11-14T08:15:52.838Z","updated_at":"2026-02-12T10:33:25.872Z","avatar_url":"https://github.com/phphleb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## CLI-COMPLETION\n\n[![HLEB2](https://img.shields.io/badge/HLEB-2-darkcyan)](https://github.com/phphleb/hleb)  [![License: MIT](https://img.shields.io/badge/License-MIT%20(Free)-brightgreen.svg)](https://github.com/phphleb/hleb/blob/master/LICENSE)\n\nExtends CLI support for the **HLEB2** [framework](https://github.com/phphleb/hleb/) \u003e= v2.0.27\n\nInstall using Composer:\n ```bash\ncomposer require phphleb/cli-completion\n ```\n\nOr download the script file manually to a folder whose path you'll later specify in the initiator. In this case, you'll need to repeat the process to update the version.\n\n--------------------------\n\n\u003e After installation, auto-completion of console commands (`php console `) by pressing **Tab** will substitute suitable framework commands.\n\n\u003e If you have several projects based on the HLEB2 framework, then copy the library files to the user's root folder and specify the path there.\n\n## Bash\n\n💾 Script file `/bash/hleb2bash.sh`\n\n### Linux\n\nFor Linux, in a terminal running Bash, add the following line to the ~/.bashrc file. For instance, if the library is installed in a project located at /home/user/web/hleb/, add the following:\n\n```bash\nsource /home/user/web/hleb/vendor/phphleb/cli-completion/bash/hleb2bash.sh\n```\n\nAfter adding, restart the terminal or run source ~/.bashrc to apply the changes. Autocompletion will work for all projects based on the HLEB2 framework.\n\n\n### macOS\n\nOn macOS, the process is similar. You need to add the line to the ~/.bash_profile or ~/.bashrc file, depending on your terminal setup. For example:\n\n```bash\nsource /Users/user/web/hleb/vendor/phphleb/cli-completion/bash/hleb2bash.sh\n```\n\nAfterward, restart the terminal or run source ~/.bash_profile or source ~/.bashrc to apply the changes. Autocompletion will be available for all HLEB2-based projects.\n\n## Windows\n\n### PowerShell\n\nOn Windows, the PowerShell shell is used.\n\n💾 Script file `/windows/hleb2completion.ps1`\n\nOpen the user profile:\n\n```bash\nnotepad $PROFILE\n```\n\nA file will open in Notepad. (!) If you get an error that the file was not found, create it and then open it again with the previous command:\n\n```bash\nNew-Item -ItemType File -Path $PROFILE -Force\n```\n\nNow you need to add the path to the executable script in the opened file (specify the actual path):\n\n```text\n. \"C:\\Users\\user\\web\\hleb\\vendor\\phphleb\\cli-completion\\windows\\hleb2completion.ps1\"\n```\n\nRestart PowerShell.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphphleb%2Fcli-completion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphphleb%2Fcli-completion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphphleb%2Fcli-completion/lists"}