Download the PHP package 1d98/framework without Composer

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

Framework

A universal zero-dependency PHP 8.5 framework skeleton. Immutability by default, strict types everywhere, and PHPStan max from day one.

Why?

Most PHP frameworks drag in a hundred transitive dependencies and lock you into abstractions. This one is the opposite: a thin, opinionated core with no runtime dependencies, written for the modern PHP 8.5 feature set.

CI Latest release

See the CI workflow for the current number.

Requirements

Installation

Quick start (CLI)

Quick start (Web)

Set APP_DEBUG=1 to enable debug mode (exposes exception messages and traces).

Then open http://localhost:8000. Try:

URL What it does
/ HTML landing page
/json JSON response echoing the request
/hello/{name} Path parameter — try /hello/world
/api/v1/users Grouped route (JSON list)
/api/v1/echo (POST) JSON body parser — send {"hello":"world"}
/api/v1/form (POST) Form body parser — send name=Alice&age=30
/boom Throws NotFoundHttpException → 404 problem details
/missing 404 problem details

Hello, World

The router sorts routes by specificity (static beats {param}), and patterns are compiled on Route construction.

Streaming responses

For bodies too large or too long-lived to buffer in memory — Server-Sent Events, NDJSON exports, large-file downloads — return a StreamedResponse from the handler. The body is produced at send() time by a Closure(resource): void emitter; Transfer-Encoding: chunked is handled automatically. Static helpers cover the common wire formats:

See docs/streaming-response.md for the SSE / NDJSON / large-file-download recipes, deployment gotchas (PHP-FPM output_buffering = Off, nginx X-Accel-Buffering: no, Apache mod_buffer), and PHPUnit testing patterns.

Project structure

For the full module layout, see docs/README.md.

Documentation

See docs/README.md for the full index.

Development

Contributing

See CONTRIBUTING.md.

License

MIT


All versions of framework with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
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 1d98/framework contains the following files

Loading the files please wait ...