Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Winter Boot: Spring Boot-style microservices in PHP 8.5

Описание и применение

Winter Boot позволяет быстро создавать микросервисы в PHP, используя модель Spring Boot с DI, транзакциями и кэшированием, обеспечивая высокую производительность и минимальный шаблон кода.

Задача

Developers familiar with Spring Boot want a similar microservice framework in PHP.

Результат

Winter Boot enables rapid development of Spring Boot‑style microservices in PHP, achieving high throughput (≈9,900 events/s on 2 CPUs) in production analytics workloads.

Рабочий процесс

  • Create service class with #[Service] and inject dependencies via #[Autowired]
  • Annotate methods with #[Cacheable] or #[Transactional] for caching and transactions
  • Define REST controller with #[RestController] and route mappings via #[GetMapping]
  • Configure application.yml with server port and datasource
  • Enable caching and transaction management with #[EnableCaching] and #[EnableTransactionManagement]
  • Run application with php ShopApplication.php and access endpoints via curl
  • Use built‑in migrator, actuator, and optional modules via Composer and yml

Доказательства

Winter Boot is an open‑source framework for writing microservices in PHP 8.5. It takes the Spring Boot programming model (beans, dependency injection, declarative transactions, caching, scheduling) and maps it onto PHP attributes.

Источник

Run php ShopApplication.php, then curl localhost:8080/products/1. That's the whole app.

Источник

In its benchmark it stores about 9,900 events per second on 2 CPUs and about 19,800 on 4 CPUs, with every accepted event persisted.

Источник

  • Дата записи: 2026-10-23T06:11:34.733Z