Download the PHP package progalaxyelabs/stone-script-php without Composer

On this page you can find all versions of the php package progalaxyelabs/stone-script-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package stone-script-php

StoneScriptPHP

Packagist Version

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

Requirements

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:

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.

Subscription enforcement: read-only by default (v10)

When a tenant's subscription or trial is expired, inactive, or missing, the framework keeps the customer's data accessible instead of locking them out:

Request Result
GET / HEAD / OPTIONS allowed
writes on the allow-list (/health, /auth, /subscription, /export, /internal, /account/subscription, DELETE /account, POST /account/delete, POST /account/cancel-deletion, POST /account/password, POST /account/password-reset/ + your write_allow_list) allowed
any other write HTTP 423, data.error_code = READ_ONLY_TRIAL_EXPIRED / READ_ONLY_PLAN_ENDED / READ_ONLY_NO_SUBSCRIPTION

Every authenticated response carries X-Subscription-State (ok, trial_ending; ends_at=..; days=.., plan_ending; ..., read_only; ended_at=..; reason=..) so a client can show a warning banner with no extra call (default window: 7 days).

Your deletion and renewal routes MUST be allow-listed. Every prefix in the defaults (/auth, /subscription, /export, /internal, /account/subscription) is unprotected for all methods, and only the exact account routes named above are exempt. If your account-deletion, cancel-deletion, renewal or payment routes live elsewhere (e.g. tenant-scoped), list them, or an expired tenant gets a 423 on its right to erasure:

Forms: /p (exact or sub-path), /p/ (prefix), METHOD /p (that method, exact path), {param} (one non-empty segment, like the Router). A cancelled subscription stays active until its expires_at (cancel-at-period-end). Active-state rule (SQL sub_get_status and SubscriptionState agree): trial, active and cancelled follow expires_at; suspended, refunded and chargeback are never active. Renewing before expiry (sub_activate) stacks onto the remaining time for active and cancelled subscriptions. Paths with a ./.. segment or an encoded %2e/%2f/%5c never match the allow-list. In block mode the state header says blocked, not read_only.

Behaviour change in v10: earlier versions returned HTTP 402 on every call. Set 'expired_mode' => 'block' to keep that. See the CHANGELOG for details.

Contributing to the framework

To test local framework changes against a real project without publishing a release, point that project's composer.json at this checkout:

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:

Support

License

MIT — see LICENSE.


All versions of stone-script-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
ext-json Version *
ext-curl Version *
progalaxyelabs/stonescriptdb-gateway-client Version ^4.2.0
firebase/php-jwt Version ^7.0
vlucas/phpdotenv Version ^5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package progalaxyelabs/stone-script-php contains the following files

Loading the files please wait ...