{"id":19325900,"url":"https://github.com/linkorb/symlinker","last_synced_at":"2025-07-25T05:06:55.500Z","repository":{"id":184810543,"uuid":"672514273","full_name":"linkorb/symlinker","owner":"linkorb","description":"symlinker: develop packages locally through symlinks (composer, npm, ansible-galaxy)","archived":false,"fork":false,"pushed_at":"2024-12-03T02:50:12.000Z","size":126,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-05T18:13:16.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://engineering.linkorb.com","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/linkorb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-30T10:51:25.000Z","updated_at":"2024-12-03T02:50:15.000Z","dependencies_parsed_at":"2023-12-29T01:30:24.327Z","dependency_job_id":"158691f0-fe9f-4d19-8904-f67861fb642f","html_url":"https://github.com/linkorb/symlinker","commit_stats":null,"previous_names":["linkorb/symlinker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linkorb/symlinker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsymlinker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsymlinker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsymlinker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsymlinker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/symlinker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsymlinker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266959839,"owners_count":24012573,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10T02:11:49.825Z","updated_at":"2025-07-25T05:06:55.447Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Managed by https://github.com/linkorb/repo-ansible. Manual changes will be overwritten. --\u003e\nsymlinker\n============\n\nCreates or updates symlinks from a config file\n\n## Use-cases:\n\n* Develop packages locally (composer, npm, ansible-galaxy)\n\n\n\n## Installation:\n\n```sh\n$ git clone git@github.com:linkorb/symlinker.git\n$ cd symlinker\n$ composer install\n```\n\nThen update your `PATH` environment to include the `bin/` directory of the symlinker repository.\n\n\n## Usage:\n\nCreate a file called `symlinker.yaml` in the root of your project, for example:\n\n```yaml\nlinks:\n    - \"~/git/my-composer-package:./vendor/my-org/my-composer-package\" # PHP / Composer\n    - \"~/git/my-node-package:./node_modules/my-node-package\" # Node / NPM\n    - \"~/git/ansible-role-example:./roles/example\" # Ansible / Galaxy\n    - \"~/my-content:./my-content\" # ... or any other arbitrary symlink\n```\n\nYour `symlinker.yaml` file is specific for your development environment, so be sure to add it to your `~/.gitignore` (in your home-dir, not `./.gitignore` in the repo!)\n\nThen you can quickly (re)install the symlinks:\n\n```sh\n$ symlinker link\n```\n\n## How does it work?\n\nsymlinker loops over your configured \"links\". for every link it:\n\n1. checks if the \"from\" directory or file exists\n2. checks if the \"to\" symlink already exists at the target. if so, it removes it.\n3. checks if \"to\" is a directory or file. if so, it archives the existing data to `/tmp/symlinker/archive/` + full path + date + time\n4. sets up the symlink from \"from\" to \"to\".\n\nSo if you've accidentally replaced a directory with valuable files with a symlink, you can always recover it from the archive directory.\n\n## Contributing\n\nWe welcome contributions to make this repository even better. Whether it's fixing a bug, adding a feature, or improving documentation, your help is highly appreciated. To get started, fork this repository then clone your fork.\n\nBe sure to familiarize yourself with LinkORB's [Contribution Guidelines](/CONTRIBUTING.md) for our standards around commits, branches, and pull requests, as well as our [code of conduct](/.github/CODE_OF_CONDUCT.md) before submitting any changes.\n\nIf you are unable to implement changes you like yourself, don't hesitate to open a new issue report so that we or others may take care of it.\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).\nBy the way, we're hiring!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsymlinker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fsymlinker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsymlinker/lists"}