{"id":29671361,"url":"https://github.com/linkorb/sops-php","last_synced_at":"2025-07-22T20:07:41.826Z","repository":{"id":203781411,"uuid":"710410694","full_name":"linkorb/sops-php","owner":"linkorb","description":"SOPS PHP wrapper library","archived":false,"fork":false,"pushed_at":"2023-11-02T15:31:34.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-13T13:57:42.469Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linkorb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-26T16:25:09.000Z","updated_at":"2023-10-26T16:27:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"62dc71a8-90ee-4ee5-b296-7ad299559402","html_url":"https://github.com/linkorb/sops-php","commit_stats":null,"previous_names":["linkorb/sops-php"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/linkorb/sops-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsops-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsops-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsops-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsops-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/sops-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Fsops-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266526722,"owners_count":23943181,"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-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2025-07-22T20:07:41.138Z","updated_at":"2025-07-22T20:07:41.815Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sops PHP wrapper libary\n==============\n\n[SOPS](https://github.com/getsops/sops) is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP.\n\nThis repository provides a SOPS wrapper PHP library for PHP applications.\n\n## Installation\n```\ncomposer require linkorb/sops-php\n```\n\n## Example\n```php\nuse linkORB\\Shipyard\\Sops as SopsWrapper;\n\n// encrypt a file using a encryption method\n$sops = new SopsWrapper();\n$data = $sops-\u003eencrypt($key, $filepath, $method);\n\n// encrypt a file using a encryption method\n$sops = new SopsWrapper();\n$data = $sops-\u003edecrypt($filepath);\n\n\n```\n## CLI usage\n\nYou can use the `bin/sops-php` CLI application to run commands for encryption/decryption.\n\nThe application needs a couple of configuration directives to work:\n\n* Install SOPS (https://github.com/getsops/sops)\n* [Age](https://age-encryption.org) or other encryption tool + key\n\n### Example commands\n\n    # encryption\n    php bin/sops-php sops:encrypt -k age1tjzcc45rq3rlnt0hd6a77w9p90pdzmq3df7pdgtkrhynyxs25y2qltryk0 -m age  composer.json\n\n    #decryption\n    php bin/sops-php sops:decrypt composer.sops.json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsops-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Fsops-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Fsops-php/lists"}