Skip to content

Commit d3ff772

Browse files
committed
(chore): Rename package from protocol-proxy to proxy
1 parent 1032093 commit d3ff772

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717

1818
- name: Build test image
1919
run: |
20-
docker build -t protocol-proxy-test --target test -f Dockerfile.test .
20+
docker build -t proxy-test --target test -f Dockerfile.test .
2121
2222
- name: Run tests
2323
run: |
24-
docker run --rm protocol-proxy-test composer test
24+
docker run --rm proxy-test composer test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Memory is the primary constraint. Scale estimate:
5252
### Using Composer
5353

5454
```bash
55-
composer require utopia-php/protocol-proxy
55+
composer require utopia-php/proxy
5656
```
5757

5858
### Using Docker
@@ -67,7 +67,7 @@ This starts five services: MariaDB, Redis, HTTP proxy (port 8080), TCP proxy (po
6767

6868
## Quick Start
6969

70-
The protocol-proxy uses the **Resolver Pattern** - a platform-agnostic interface for resolving resource identifiers to backend endpoints.
70+
The proxy uses the **Resolver Pattern** - a platform-agnostic interface for resolving resource identifiers to backend endpoints.
7171

7272
### Implementing a Resolver
7373

@@ -324,7 +324,7 @@ $config = new Config(
324324

325325
### Environment Variables
326326

327-
The proxy entry points (`proxies/*.php`) support configuration via environment variables:
327+
The proxy entry points (`examples/*.php`) support configuration via environment variables:
328328

329329
**HTTP Proxy:**
330330

benchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ High-load benchmark suite for HTTP and TCP proxies.
1515
## One-Shot Benchmark (Fresh Linux Droplet)
1616

1717
```bash
18-
curl -sL https://raw.githubusercontent.com/utopia-php/protocol-proxy/dev/benchmarks/bootstrap-droplet.sh | sudo bash
18+
curl -sL https://raw.githubusercontent.com/utopia-php/proxy/dev/benchmarks/bootstrap-droplet.sh | sudo bash
1919
```
2020

2121
This installs PHP 8.3 + Swoole, tunes the kernel, and runs all benchmarks automatically.

benchmarks/bootstrap-droplet.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# One-shot benchmark runner for fresh Linux droplet
44
#
55
# Usage (as root on fresh Ubuntu 22.04/24.04):
6-
# curl -sL https://raw.githubusercontent.com/utopia-php/protocol-proxy/dev/benchmarks/bootstrap-droplet.sh | sudo bash
6+
# curl -sL https://raw.githubusercontent.com/utopia-php/proxy/dev/benchmarks/bootstrap-droplet.sh | sudo bash
77
#
88
# Quick Docker test (no install needed):
99
# docker run --rm --privileged phpswoole/swoole:php8.3-alpine sh -c '
1010
# apk add --no-cache git composer > /dev/null 2>&1
11-
# cd /tmp && git clone --depth 1 -b dev https://github.com/utopia-php/protocol-proxy.git
12-
# cd protocol-proxy && composer install --quiet
11+
# cd /tmp && git clone --depth 1 -b dev https://github.com/utopia-php/proxy.git
12+
# cd proxy && composer install --quiet
1313
# BACKEND_HOST=127.0.0.1 BACKEND_PORT=15432 php benchmarks/tcp-backend.php &
1414
# sleep 2 && BENCH_PORT=15432 BENCH_CONCURRENCY=100 BENCH_CONNECTIONS=5000 php benchmarks/tcp.php
1515
# '
@@ -111,17 +111,17 @@ else
111111
echo " - Composer installed"
112112
fi
113113

114-
echo "[4/6] Cloning protocol-proxy..."
114+
echo "[4/6] Cloning proxy..."
115115

116-
WORKDIR="/tmp/protocol-proxy-bench"
116+
WORKDIR="/tmp/proxy-bench"
117117
rm -rf "$WORKDIR"
118118

119-
if [ -f "composer.json" ] && grep -q "protocol-proxy" composer.json 2>/dev/null; then
119+
if [ -f "composer.json" ] && grep -q "proxy" composer.json 2>/dev/null; then
120120
# Already in the repo
121121
WORKDIR="$(pwd)"
122122
echo " - Using current directory"
123123
else
124-
git clone --depth 1 -b dev https://github.com/utopia-php/protocol-proxy.git "$WORKDIR" 2>/dev/null
124+
git clone --depth 1 -b dev https://github.com/utopia-php/proxy.git "$WORKDIR" 2>/dev/null
125125
cd "$WORKDIR"
126126
echo " - Cloned to $WORKDIR"
127127
fi

benchmarks/test-bootstrap.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ echo " OK: Composer $(composer --version 2>/dev/null | cut -d' ' -f3)"
7474

7575
echo "[5/6] Testing git clone..."
7676
cd /tmp
77-
rm -rf protocol-proxy-test
78-
git clone --depth 1 -b dev https://github.com/utopia-php/protocol-proxy.git protocol-proxy-test > /dev/null 2>&1
79-
cd protocol-proxy-test
77+
rm -rf proxy-test
78+
git clone --depth 1 -b dev https://github.com/utopia-php/proxy.git proxy-test > /dev/null 2>&1
79+
cd proxy-test
8080
echo " OK: Cloned successfully"
8181

8282
echo "[6/6] Testing composer install..."
@@ -91,4 +91,4 @@ BENCH_CONCURRENCY=5 BENCH_CONNECTIONS=10 BENCH_PAYLOAD_BYTES=0 php benchmarks/tc
9191

9292
echo ""
9393
echo "Bootstrap script should work. Run the full version:"
94-
echo " curl -sL https://raw.githubusercontent.com/utopia-php/protocol-proxy/dev/benchmarks/bootstrap-droplet.sh | sudo bash"
94+
echo " curl -sL https://raw.githubusercontent.com/utopia-php/proxy/dev/benchmarks/bootstrap-droplet.sh | sudo bash"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "utopia-php/protocol-proxy",
2+
"name": "utopia-php/proxy",
33
"description": "High-performance protocol-agnostic proxy with Swoole for HTTP, TCP, and SMTP",
44
"type": "library",
55
"license": "BSD-3-Clause",

docker-compose.integration.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
services:
22
http-backend:
33
image: nginx:1.27-alpine
4-
container_name: protocol-proxy-http-backend
4+
container_name: proxy-http-backend
55
command: ["sh", "-c", "printf 'server { listen 5678; location / { root /usr/share/nginx/html; index index.html; } }' > /etc/nginx/conf.d/default.conf && echo -n ok > /usr/share/nginx/html/index.html && nginx -g 'daemon off;'"]
66
networks:
7-
- protocol-proxy
7+
- proxy
88

99
tcp-backend:
1010
image: alpine/socat
11-
container_name: protocol-proxy-tcp-backend
11+
container_name: proxy-tcp-backend
1212
command: ["-v", "TCP-LISTEN:15432,reuseaddr,fork", "SYSTEM:cat"]
1313
networks:
14-
- protocol-proxy
14+
- proxy
1515

1616
smtp-backend:
1717
image: axllent/mailpit:v1.19.0
18-
container_name: protocol-proxy-smtp-backend
18+
container_name: proxy-smtp-backend
1919
command: ["--smtp", "0.0.0.0:1025", "--listen", "0.0.0.0:8025"]
2020
networks:
21-
- protocol-proxy
21+
- proxy
2222

2323
http-proxy:
2424
environment:

0 commit comments

Comments
 (0)