progalaxyelabs/stonescriptphp
Composer 安装命令:
composer require progalaxyelabs/stonescriptphp
包简介
Core Framework Library - Use progalaxyelabs/stonescriptphp-server to create new projects. Modern PHP backend framework for building APIs with PostgreSQL. Installed automatically as a dependency when you create projects with stonescriptphp-server.
README 文档
README
A PHP backend framework for building PostgreSQL-backed APIs, with Angular-inspired
routing, a stone CLI for code generation, and improved developer ergonomics.
This repository is the core framework library — the routing, auth, validation, and database-binding code that everything else in the ecosystem is built on.
Which package do I want?
| I want to... | Use this |
|---|---|
| Start a new API project | stonescriptphp-server — composer create-project progalaxyelabs/stonescriptphp-server my-api |
| Contribute to the framework, build a custom project template, or integrate StoneScriptPHP into an existing app | This repository — composer require progalaxyelabs/stonescriptphp |
If you're just getting started, go create your project with stonescriptphp-server
first — it already depends on this package, so you'll get it automatically. Come
back here if you need to read or modify the framework's own code.
Features
- PostgreSQL-first — business logic lives in SQL functions; PHP models wrap them with types
- JWT authentication — RSA & HMAC, built-in Google OAuth, pluggable auth modes
- RBAC — role-based permissions
- Request validation — 12+ built-in rules
- Redis caching — optional, with tag-based invalidation
- CLI code generation — routes, models, migrations, TypeScript clients, all via
php stone - Structured logging — PSR-3 compatible, colorized console output
- VS Code extension — snippets for the framework's conventions
Requirements
- PHP >= 8.2, with
pdo,pdo_pgsql,json,openssl - PostgreSQL >= 13
- Composer
- Redis (optional, for caching)
Architecture in one paragraph
Routes handle HTTP concerns only (validation, auth, response shaping). Each route calls a generated PHP model, which calls a PostgreSQL function — that's where the actual business logic and queries live. This keeps the PHP layer thin and puts logic close to the data it operates on. See HLD.md for the full picture.
Auth Service clients (backend-to-backend)
If your app needs to manage memberships or invitations from backend code (e.g. a payment webhook creating a membership, or a bulk-invite CLI job), the framework ships thin HTTP clients for the Auth Service:
use StoneScriptPHP\Auth\Client\MembershipClient; $client = new MembershipClient('http://auth-service:5000'); $client->createMembership([ 'identity_id' => $userId, 'tenant_id' => $tenantId, 'role' => 'premium_member', ], $systemAdminToken);
InvitationClient works the same way for invite/bulk-invite/cancel. These are for
backend automation only — for frontend login and token handling, use the Angular
client (ngx-stonescriptphp-client) instead.
Contributing to the framework
git clone https://github.com/progalaxyelabs/StoneScriptPHP.git cd StoneScriptPHP composer install composer test
To test local framework changes against a real project without publishing a
release, point that project's composer.json at this checkout:
{
"repositories": [
{ "type": "path", "url": "../StoneScriptPHP", "options": {"symlink": false} }
],
"require": { "progalaxyelabs/stonescriptphp": "@dev" }
}
then run composer update progalaxyelabs/stonescriptphp in that project.
Versioning
Semantic Versioning — patch releases are safe to take anytime, minor releases add backward-compatible features, major releases may break things (read the migration guide first). Check Packagist or this repo's tags for the current version — don't rely on a hardcoded number in this README, it goes stale.
Documentation
The stonescriptphp.org marketing site doesn't have a /docs section live yet —
the documentation that exists today lives in this repo:
- High-Level Design
- Framework contract / SPEC
- Changelog
- stonescriptphp.org — overview, features, ecosystem
- stonescriptphp-server README — getting-started walkthrough for new projects
Support
License
MIT — see LICENSE.
progalaxyelabs/stonescriptphp 适用场景与选型建议
progalaxyelabs/stonescriptphp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.17k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「php」 「rest」 「api」 「postgresql」 「typescript」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 progalaxyelabs/stonescriptphp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 progalaxyelabs/stonescriptphp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 progalaxyelabs/stonescriptphp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Alfabank REST API integration
A Flickr wrapper to allow you to call the Flickr api with Guzzle as the backend.Goal is to have 100% Flickr api coverage rather than just upload/display photos (currently at 23%).
High-performance, opinionated PHP 8 web framework with O(1) routing, parallel async MySQL, type-safe asset bridge, and React-island frontend
统计信息
- 总下载量: 1.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-01