Skip to content

Commit 134696b

Browse files
author
RouterBase Contributors
committed
Link PHP Composer package batch
1 parent b9f5a81 commit 134696b

6 files changed

Lines changed: 61 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.4.0 - 2026-06-30
4+
5+
- Created the standalone `RouterBase/routerbase-php` Composer package repository.
6+
- Added PHP client, CLI, tests, Packagist-ready metadata, CI, topics, and release.
7+
- Linked the PHP package repository from the examples index.
8+
39
## 0.3.0 - 2026-06-30
410

511
- Added a RubyGems-ready `routerbase-client` gem starter.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ These companion packages are already published:
104104
- PyPI package draft: `routerbase-client`
105105
- JSR package draft: `@routerbase/client`
106106
- RubyGems package draft: `routerbase-client`
107+
- Composer package repository: [RouterBase/routerbase-php](https://github.com/RouterBase/routerbase-php)
107108

108109
## Links
109110

docs/batch-plan.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,23 @@ Status:
9393
- Ruby gem starter added at `packages/ruby-routerbase`.
9494
- Ruby tests and gem build added to CI.
9595
- Manual RubyGems publish workflow added: `.github/workflows/publish-rubygems.yml`.
96+
97+
## Batch 6 - PHP / Packagist
98+
99+
Create a standalone Composer package repository instead of burying PHP under the examples monorepo.
100+
101+
Repository:
102+
103+
- `https://github.com/RouterBase/routerbase-php`
104+
105+
Package:
106+
107+
- `routerbase/client`
108+
109+
Status:
110+
111+
- GitHub repository created.
112+
- Composer metadata added at repository root.
113+
- PHP client, CLI, tests, and CI added.
114+
- GitHub release `v0.1.0` created.
115+
- Packagist package name check returned 404 before publishing.

docs/packagist.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Packagist Package
2+
3+
The PHP package is maintained as a standalone repository:
4+
5+
```text
6+
https://github.com/RouterBase/routerbase-php
7+
```
8+
9+
Composer package name:
10+
11+
```text
12+
routerbase/client
13+
```
14+
15+
The repository README starts with [RouterBase](https://routerbase.com), and the package metadata uses `https://routerbase.com` as the homepage.
16+
17+
## Current Status
18+
19+
- GitHub repository: created.
20+
- CI: passing across PHP 8.1, 8.2, and 8.3.
21+
- Release: `v0.1.0`.
22+
- Packagist lookup before publishing: 404 for `routerbase/client`.
23+
24+
## Publish
25+
26+
Log in to Packagist and submit:
27+
28+
```text
29+
https://github.com/RouterBase/routerbase-php
30+
```
31+
32+
After submission, enable GitHub auto-update / webhook syncing so future tags are picked up automatically.

docs/publishing-checklist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Use this checklist before publishing any RouterBase package or repository.
2626
- For PyPI packages, run `python3 -m build` in the package directory.
2727
- For Go modules, run `go test ./...` in the module directory and confirm pkg.go.dev can index the public module path.
2828
- For Ruby gems, run `ruby -Ilib test/client_test.rb` and `gem build routerbase-client.gemspec`.
29+
- For Composer packages, run `composer validate --strict`, `composer lint`, and `composer test`.
2930
- For Docker images, build locally before pushing.
3031

3132
## Maintenance

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "routerbase-examples",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Examples, SDK starters, and publishing assets for RouterBase.",
55
"private": true,
66
"type": "module",

0 commit comments

Comments
 (0)