{"id":22129150,"url":"https://github.com/valentiniljaz/packagist-publish","last_synced_at":"2026-01-31T09:31:51.315Z","repository":{"id":57675700,"uuid":"483933155","full_name":"valentiniljaz/packagist-publish","owner":"valentiniljaz","description":"Publish Composer package to Private Packagist using API","archived":false,"fork":false,"pushed_at":"2024-08-20T08:55:36.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T00:19:00.695Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valentiniljaz.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,"zenodo":null}},"created_at":"2022-04-21T06:30:04.000Z","updated_at":"2024-08-20T08:49:42.000Z","dependencies_parsed_at":"2025-06-26T02:05:28.645Z","dependency_job_id":"cb042e05-0f1f-449e-878e-27921f393d2c","html_url":"https://github.com/valentiniljaz/packagist-publish","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/valentiniljaz/packagist-publish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Fpackagist-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Fpackagist-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Fpackagist-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Fpackagist-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valentiniljaz","download_url":"https://codeload.github.com/valentiniljaz/packagist-publish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valentiniljaz%2Fpackagist-publish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28936151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T08:53:31.997Z","status":"ssl_error","status_checked_at":"2026-01-31T08:51:38.521Z","response_time":128,"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":[],"created_at":"2024-12-01T17:58:55.823Z","updated_at":"2026-01-31T09:31:51.301Z","avatar_url":"https://github.com/valentiniljaz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Private Packagist Publish\n\nPublish your package to Packagist.com using API. Very useful for PHP monorepos.\n\n### Install\n\nAdd the package as dev dependency to your project:\n\n```\ncomposer require --dev valentiniljaz/packagist-publish\n```\n\n### Use\n\nPublish your package:\n\n```\n./vendor/bin/packagist-publish\n```\n\n\u003e Initial publish of the package must be done manually by uploading\n\u003e archive to Packagist.com\n\nIf you only need to prepare archive for publishing:\n\n```\n./vendor/bin/packagist-archive\n```\n\nHelp about commands:\n\n```\n./vendor/bin/packagist-publish -h\n./vendor/bin/packagist-archive -h\n```\n\n### How it works\n\n#### 1) Builds zip archive using GIT\n\n```\ngit archive -o \u003cdest\u003e HEAD[:\u003csubdir\u003e]\n```\n\n\u003e You must have all your changes committed.\n\n#### 2) Publishes archive to Packagist.com using API endpoint \n\n```\nPOST /api/packages/\u003cpackage-name\u003e/artifacts/\n```\n\n\u003e You must provide Packagist API Key and Secret either\n\u003e by command params (--apiKey, --apiSecret)\n\u003e or by env variables (PACKAGIST_KEY, PACKAGIST_SECRET).\n\u003e Params have precedence over env vars.\n\n#### Details\n\n- If path to composer.json is not specified by command option it'll take the first composer.json it finds from current working dir upwards.\n- For GIT ARCHIVE it needs to know the root of GIT repo; it'll take the first dir containing `.git` from current working dir upwards.\n- Default destination for archive is the location of dir containing composer.json.\n- If you need to ignore specific folder(s)/file(s) from archive you can use `.gitattributes` and set `export-ignore` attribute.\n\n## Author\n\nValentin Iljaž\n\n[valentin.iljaz@gmail.com](mailto:valentin.iljaz@gmail.com)\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentiniljaz%2Fpackagist-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalentiniljaz%2Fpackagist-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalentiniljaz%2Fpackagist-publish/lists"}