Download the PHP package phpthis/framework without Composer

On this page you can find all versions of the php package phpthis/framework. 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 framework

PHPThis

PHPThis

PHPThis is an experimental, checked PHP profile and minimal web framework for AI-first authoring with human accountability. AI is the primary code author and knowledge interface. Humans provide intent, decide consequential tradeoffs, and remain accountable for the resulting software.

It stays close to ordinary PHP and favors code that is local, literal, typed, bounded, and easy to verify over APIs optimized for typing speed.

PHPThis does not provide AI or LLM APIs. "AI" refers to the code-authoring workflow.

The working rule is simple: if a behavior cannot be found by following ordinary PHP definitions, it does not belong in the framework.

Ask the project AI

PHPThis has no traditional framework manual. To learn how to code something, explain an existing path, or repair a diagnostic, ask the AI working in the application. Its first job is to inspect the installed PHPThis version, the application's AGENTS.md and .ai/ context, and the concrete source and tests.

Useful requests include:

The versioned Markdown in this repository is not a linear tutorial. It is compact framework authority that an AI can route and a human can audit. Human-approved intent and decisions define desired application behavior; source, tests, and the complete check provide executable evidence of what was implemented.

What makes it different

Removing an ORM does not prove that N+1 queries are impossible. PHPThis combines visible SQL with query budgets and scale-sensitive tests so that query count cannot silently grow with result size.

Finite SQL and parameter binding do not prove authorization or least privilege. Consuming applications record and verify the objects and actions available to each runtime connection and keep schema-owner, migration, and administrative credentials outside the web runtime.

Current state

Status: experimental prerelease evaluation software. Framework APIs may change without backward compatibility while the development pattern is being proven. Do not use PHPThis in production.

The bounded release gate must prove both packages and the clean public installation path before Alpha 3 is announced.

This is a zero third-party runtime-dependency framework foundation. The current proof slice supports bounded runtime request ingestion, one typed bounded multipart upload, one fixed-chunk local-file response, immutable headers and validated response cookies, optional lazy native-file sessions, exact error mapping, directly indexed literal routes, and one deterministic state index for paths with at most two full-segment positive-integer or opaque-token parameters, plus explicit handlers and instrumented PDO access. It does not include a framework cache client, cache interface, cache helper, lock or lease interface, general automatic HTTP cache policy, framework queue runtime, framework migration runtime, generic storage abstraction, or byte ranges. Framework-generated 404, 405, and 500 responses and every current skeleton/example response path explicitly include the no-store directive; protected responses additionally use private. Arbitrary application handler responses remain application-owned. The sample application includes a bounded GET /users List operation with one explicit application-owned keyset continuation, an account-scoped transactional POST /accounts/{account_id:positive-int}/users Create operation that records the new user-to-account relation separately from actor membership and commit-publishes one SQLite welcome job, the first bounded GET /users/{user_id} item proof, nested protected document Get and List routes, public POST/GET /document-files transfer evidence with generated local identities, and an application-owned database:migrate SQLite proof with immutable checksummed history. ADR 024 adds a SQLite-specific one-delivery worker proof with a versioned envelope, finite dispatch, fenced leases, bounded retries, redacted dead letters, process-crash recovery, and one idempotent database effect. ADR 028 adds one application-owned Redis document-cache and schedule-lease proof with current authorization, explicit fallback, bounded stale refill, separate cache and noeviction lease endpoints, and owner-token-safe renewal and release. The Redis owner token is not a fencing token and the lease does not replace SQLite job correctness. ADR 020 establishes the explicit stateless authentication boundary, tenant resolution, current per-request authorization, denial bounds, and replaceable I/O-free application policies. ADR 022 adds the SQLite-only document collection proof with rank_asc/rank_desc, exact v1:<order>:<sort_rank>:<document_key> cursors, omitted/empty/one-to-three categories, and one statement per non-empty page. ADR 029 composes those boundaries in one sanitized consumer profile without adding framework runtime behavior. These proofs do not supply a credential parser, identity provider, credential lifecycle, policy engine, universal tenant model, generic paginator, snapshot guarantee, cross-engine application SQL, cross-engine queues or migrations, generic cache or lease APIs, Redis failover guarantees, or exactly-once external effects. Update and Delete are not yet claimed. Session transport is not an authentication, authorization, expiry, or CSRF implementation; applications own those policies.

The executable query-scaling proof holds every accepted page at one statement while traversing 125 users as 50, 50, and 25 rows without gaps or duplicates. Its isolated N+1 negative control grows from 3 statements for 2 users to 51 for 50 users; PHT003 rejects that implementation, and a query budget stops it before statement 4.

Try it

PHP 8.4.x with PDO, PDO SQLite, ext-session, and Composer are required for the framework checks. Composer deliberately excludes PHP 8.5 until that runtime has its own reviewed CI evidence. The repository's application-owned Redis integration proof additionally declares ext-redis ^6.3, tests Redis server >=7.4 and <9.0, and requires two processes by default: cache at 127.0.0.1:6379 database 0, and lease at 127.0.0.1:6380 database 0. PHPStan and the PHPThis Strict Profile are mandatory development components and do not affect the framework runtime.

Start an application

The independently checked phpthis/skeleton package source lives under skeleton/. It contains a runnable health application, project-owned AI context, the installed profile gate, behavior tests, and CI. The getting-started guide defines both the Packagist installation path and source-checkout evaluation while requiring current package availability to be verified externally.

Every application must own and commit a thin root AGENTS.md and a task-routed .ai/ directory. These files record project-specific domain, scale, integration, operational, and verification facts without copying PHPThis's maintainer instructions.

Ask the project AI to follow the knowledge map. Existing applications can still adopt the documentation-only context under templates/application/ deliberately.

Authority and project status

The source repository contains a maintainer-only .ai/README.md that routes changes to PHPThis itself. It is intentionally excluded from the Composer package; installed consumers use the knowledge map.

License

PHPThis is open-source software licensed under the MIT License.


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-pdo Version *
ext-session Version *
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 phpthis/framework contains the following files

Loading the files please wait ...