Download the PHP package flytachi/winter-kernel without Composer

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

Winter Kernel

Latest Version on Packagist PHP Version Require

๐Ÿ“– winterframe.net/docs ยท Install ยท Quick start ยท Key concepts

Every link here points at winterframe.net and is language-neutral โ€” the site serves the page in your language, RU or EN. Both are complete.

The kernel of the Winter framework: the package you install, and the only one you install directly. It turns a directory of classes into a running application โ€” routing, request binding and validation, responses, dependency injection, managed processes and daemons, scheduling, localization, diagnostics and the console.

It is a library, not a skeleton. There is nothing to scaffold and no directory tree to create: you add it to a project, write one class saying what the application contains, and run it.

What is not in it

The database layer and the Redis client are separate packages, installed on demand. The kernel knows just enough about them to find your classes and hand them over when the package is there โ€” an application that talks only to an external API should not carry an ORM, a connection pool and a migration engine it never loads.

Package What it adds Docs
flytachi/winter-ppa Repositories, entities, query builder, migrations, DB pool PPA
flytachi/winter-redis Pooled Redis: prefixed stores, hashes, lists, streams Redis

See Ecosystem for the full picture, including the libraries the kernel already brings with it (DI, logger, CDO, thread).


Requirements

PHP 8.4+
Required extensions pcntl, posix, fileinfo
For the HTTP server swoole โ€” coroutines, connection pooling, static files
Optional pdo (database) ยท bcmath, decimal (exact numbers) ยท simplexml (XML bodies)

Everything else comes from composer. Details: Installation.


Install

Mini start โ€” two files

bootstrap.php โ€” loads the autoloader and declares what the application contains:

call โ€” the single entry point for everything, the server included (chmod +x call once):

chdir() is not decoration: it ties .env, storage/ and resources/ to the project rather than to wherever the command was typed, which is what makes calls from cron, systemd and docker exec predictable.

That is a working project โ€” no .env, no directories. The kernel creates what it needs when it needs it.

Add a controller anywhere under the project; the scan finds it, no registration:

Walk-through with a path variable, a query parameter and the JSON it returns: Quick start.


What the application contains โ€” #[Enable*]

The attributes on the application class are the manifest. Each adds a component; declare none and boot fails rather than starting an application that does nothing.

Attribute Effect Docs
#[EnableWeb] the Swoole HTTP server Routing
#[EnableScheduler] runs #[Scheduled] methods on their triggers Scheduler
#[EnableProcess(Foo::class)] a managed worker beside the server Processes
#[EnableDaemon(Bar::class)] a supervised fleet of workers Daemons
#[EnableAsync] proxies #[Async] methods so they run off the request Async
#[EnableActuator] /actuator โ€” health, pools, metrics, mappings Actuator
#[Import('vendor/pkg', '/prefix')] mounts a package under a URL prefix Packages

Everything else is an ordinary class the scan finds โ€” there are no configuration hooks to override:

Full list and the rules: Components.


Documentation map

The whole reference lives at winterframe.net. The tree below mirrors the site's own navigation.

1. Introduction โ€” what this is, and whether it fits you

  1. What is Winter
  2. Philosophy
  3. Key concepts
  4. Ecosystem

2. Getting started โ€” from an empty directory to a served request

  1. Installation
  2. Project structure
  3. Configuration
  4. Quick start
  5. Dependency injection
  6. Basic connections

3. Web basics โ€” everything between the request and the response

  1. Routing
  2. Web-layer configuration
  3. Controllers
  4. Middleware
  5. Requests and parameter binding
  6. Validation
  7. Responses
  8. Cookies
  9. Views
  10. Error handling

4. Background components โ€” work that outlives a request

  1. Components
  2. Processes
  3. Daemons
  4. Scheduler

5. Database (PPA) โ€” needs flytachi/winter-ppa

  1. PHP Persistence API
  2. Connection
  3. Entities
  4. Repositories
  5. Pagination
  6. Migrations
  7. Connection pool

6. Redis โ€” needs flytachi/winter-redis

  1. Redis
  2. Configuration
  3. Stores
  4. Hashes
  5. Lists
  6. Streams
  7. Connection pool

7. CLI โ€” the call command and everything under it

  1. Overview
  2. make โ€” generate a component
  3. cfg โ€” .env, keys, Docker, completion
  4. run โ€” serve the application
  5. db โ€” ping, migrate, SQL preview, pools
  6. mapping โ€” the route table
  7. storage โ€” service directories
  8. script โ€” your own commands
  9. di โ€” scanner cache and #[Async] proxies
  10. process โ€” start, stop, status
  11. daemon โ€” fleets of workers
  12. schedule โ€” the scheduler

8. Advanced โ€” the parts you reach for later

  1. Logging
  2. Localization
  3. Asynchronous calls
  4. Actuator / Health
  5. File storage
  6. Packages
  7. Runtimes (FPM and Swoole)

License

MIT โ€” see LICENSE.


All versions of winter-kernel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
flytachi/winter-di Version ^2.0
flytachi/winter-base Version ^3.0
flytachi/winter-logger Version ^1.0
flytachi/winter-thread Version ^3.0
flytachi/winter-cdo Version ^4.0
flytachi/file-store Version ^2.0
vlucas/phpdotenv Version ^5.6
ext-pcntl Version *
ext-posix Version *
ext-fileinfo 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 flytachi/winter-kernel contains the following files

Loading the files please wait ...