承接 phlo/tech 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phlo/tech

Composer 安装命令:

composer require phlo/tech

包简介

Full-stack web framework with its own .phlo language: express backend logic, routing, HTML views, scoped CSS and single-page behavior in one concise file format that transpiles to plain PHP, CSS and JS.

README 文档

README

A transpile-to-PHP web framework with its own .phlo language, a built-in SPA runtime, the Phlo Control Center (built-in dev panel), and first-class introspection for AI agents. Zero runtime dependencies.

prop title = 'Hello'

route GET => $this->home

method home => view($this->main, 'Home')

view main:
<h1>$this->title</h1>
<p>{{ date('Y') }}</p>

That file transpiles to a PHP class, a route, an HTML page, and (with a <style>/<script> block) a CSS and JS bundle. One .phlo file is one class; the build writes plain PHP you can read, lint and source-map back to the line you wrote.

Why Phlo

Phlo is opinionated on purpose. The bets it makes:

  • Transpile, don't interpret. .phlo is transformed to readable PHP at build time. Errors at runtime map back to your .phlo line, not to generated soup.
  • One closed loop. Source to build to lint to sourcemap to error page to Control Center to CLI introspection. Every layer points back at the source.
  • Small and dependency-free. The engine ships its own CSS transpiler, JS minifier and SPA runtime. No vendor tree to audit. The bet is proven server tech: PHP still runs more than 70% of the web (W3Techs), and Phlo builds on that instead of on a JavaScript build chain.
  • Agent-first. docs/SKILL.md is a complete language reference written for AI agents, and the reflect:: CLI exposes routes, views, the parsed AST and dependency graphs as JSON. An agent can build, introspect and fix a Phlo app without guessing.
  • Convention over configuration. File name becomes class name. Named phlo_app() arguments become constants. data/app.json stays tiny.

If you want a large ecosystem, a package for everything, and a team-standard hiring pool, reach for Laravel or Symfony. If you want a small, legible full-stack engine that one person (or one agent) can hold in their head, Phlo is for you.

One platform, four layers

The four Phlo layers: language, application, server, operations

The language is the bottom layer of one continuous system; each layer is built with the previous one, in the same syntax:

  1. Language: .phlo source transpiles to readable PHP, CSS and JS.
  2. Application: backend resources (ORM, sessions, security, AI) plus the phlo.js SPA engine and the apply() protocol; Phlo CMS adds a schema-driven CRUD and admin layer on top.
  3. Server: production on FrankenPHP in worker mode, with the Phlo Daemon for warm workers, realtime and scheduled tasks.
  4. Operations: the Phlo Dashboard manages apps and servers as a fleet: uptime, domains, databases, notifications.

The full story, guide, tutorial and reference live at phlo.tech; machine-readable docs at phlo.tech/llms.txt.

Quick start

Requirements: PHP >= 8.3. Optional extensions per resource (pdo_mysql, sodium, gd).

git clone https://github.com/q-ainl/phlo.git
php phlo/install.php /path/to/my-app

The installer asks for a name, host, purpose and which resources to enable, writes a buildable skeleton (app.phlo, www/app.php, data/app.json, data/app.md), and runs the build so the app is verified before you start.

Serve it with FrankenPHP, Docker, PHP-FPM or, for a quick look:

php /path/to/my-app/www/app.php reflect::context   # inspect without a server
php -S 127.0.0.1:80 /path/to/my-app/www/app.php   # then open http://localhost

See docs/deploy.md for FrankenPHP (incl. worker mode), Docker and nginx setups.

The development loop

With build: true set in www/app.php, the app rebuilds changed .phlo files on request. Two CLI namespaces drive everything:

php www/app.php build::run      # transpile changed sources, returns changed files
php www/app.php build::lint     # parse-check the generated PHP, [] means clean
php www/app.php reflect::context   # app identity, routes, views, recent errors
php www/app.php reflect::routes    # full route map

With build and debug on (dev only), the Phlo Control Center auto-mounts at /phlo and offers home, config, source, build, release and error views. Move it with the optional control: key or set control: false to disable.

The Phlo Control Center source view: every .phlo file highlighted and searchable, one click from build, release and errors

Documentation

Editor support

Syntax highlighting under editor/: a VS Code extension (TextMate grammar, reusable in Sublime/JetBrains/Zed) and a Notepad++ user-defined language with a function-list parser.

License

MIT. See LICENSE.

phlo/tech 适用场景与选型建议

phlo/tech 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「php」 「full-stack」 「SPA」 「transpiler」 「phlo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 phlo/tech 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 phlo/tech 我们能提供哪些服务?
定制开发 / 二次开发

基于 phlo/tech 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 31
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-20