Download the PHP package waffle-commons/waffle without Composer

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

Discord PHP Version Require PHP CI codecov Latest Stable Version Latest Unstable Version Total Downloads Packagist License

Waffle β€” the Kernel

Release: 0.1.0-beta6  |  CHANGELOG.md

The application kernel. Orchestrates request handling against the PSR-15 middleware stack, dispatches RequestReceivedEvent / ResponseGeneratedEvent / TerminateEvent, and resolves controllers via the container. The kernel itself stays agnostic of routing, security, logging, and HTTP β€” every concrete dependency is injected.

πŸ†• Beta-1 highlights

πŸ“¦ Installation

🧱 Surface

Class Role
Waffle\Kernel Concrete kernel. Extends AbstractKernel.
Waffle\Abstract\AbstractKernel Implements KernelInterface::boot/configure/handle/reset; provides DI setters for setContainerImplementation, setConfiguration, setSecurity, setMiddlewareStack, setEventDispatcher.
Waffle\Abstract\AbstractController Convenient base for app controllers; provides PSR-7 helper accessors.
Waffle\Abstract\AbstractSystem Internal lifecycle binder used by Waffle\Core\System.
Waffle\Core\System Boots the security / container linkage once the kernel reaches configure().
Waffle\Core\BaseController Default BaseControllerInterface implementation.
Waffle\Handler\ControllerDispatcher Terminal PSR-15 handler that the middleware stack falls through to. Calls the controller method resolved from _controller and _route_params.
Waffle\Handler\ControllerArgumentResolver Hydrates controller parameters, including #[Dto]-tagged DTOs from the parsed body.
Waffle\Handler\ControllerResponseConverter Converts a controller's scalar / array return into a PSR-7 ResponseInterface.
Waffle\Exception\* Domain exceptions (WaffleException, RouteNotFoundException, RenderingException, ValidationException, InvalidConfigurationException).

πŸš€ Composing a kernel

The setter signatures, verbatim from src/Abstract/AbstractKernel.php:

The constructor takes a PSR-3 logger only (defaults to NullLogger):

πŸ” Request lifecycle

  1. handle(ServerRequestInterface) ensures boot() + configure() have run (idempotent β€” the $booted guard short-circuits subsequent calls).
  2. validateState() rejects an unconfigured kernel with RuntimeException / ContainerException / NotFoundException as appropriate.
  3. RequestReceivedEvent is dispatched; listeners may swap the request.
  4. The middleware stack runs; the terminal handler is a ControllerDispatcher resolving the route's _controller + _route_params.
  5. ResponseGeneratedEvent is dispatched; listeners may swap the response.
  6. The response is returned to WaffleRuntime which emits it and calls terminate() for post-emission listeners.
  7. reset() clears request-scoped state (container reset).

πŸ“¨ Built-in events

All three are PSR-14 events; RequestReceivedEvent and ResponseGeneratedEvent are not stoppable β€” they expose mutator methods (getRequest(), getResponse()) so listeners can replace the message.

🐘 PHP 8.5 features used

🧭 Architectural boundary (mago guard)

An active dependency perimeter is enforced on every CI run by vendor/bin/mago guard (bundled into composer mago; zero baselines). The rules live in mago.toml under [guard.perimeter] β€” a forbidden use statement fails the build, not a reviewer.

As the framework assembly package, waffle lives under the top-level Waffle namespace (not Waffle\Commons\*). Production code under Waffle may depend only on:

Test code under WaffleTests is unrestricted (@all). Structural rules are guarded too: interfaces must be named *Interface, Exception\** classes must end in *Exception, and any Enum\** namespace may hold only enum declarations.

Note: waffle depends only on contracts + utils directly. The concrete components (http, routing, security, …) are wired at the application layer (e.g. the skeleton's AppKernelFactory), not pulled in here β€” that is what keeps the kernel component-agnostic.

πŸ§ͺ Testing

πŸ“š Documentation

Central framework docs (DiΓ‘taxis) for this component:

πŸ“„ License

MIT β€” see LICENSE.md.


All versions of waffle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
psr/container Version ^2.0
psr/http-message Version ^1.1 || ^2.0
psr/http-server-handler Version ^1.0
psr/event-dispatcher Version ^1.0
psr/log Version ^3.0
psr/cache Version ^3.0
waffle-commons/contracts Version self.version
waffle-commons/utils Version self.version
psr/http-server-middleware Version ^1.0
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 waffle-commons/waffle contains the following files

Loading the files please wait ...