Skip to content

neevets/zenith

Tests License
Stars Forks

Zenith is an experimental research project. It is NOT production-ready. The security features and type analysis are in prototype/development stage, and should not be relied upon for critical applications.

Table of Contents

  1. Introduction
  2. Why Zenith?
  3. Architecture
  4. Installation
  5. Documentation
  6. License

Introduction

Zenith is a programming language that transpiles to PHP 8.4+. It is designed to explore modern functional syntax, safe-by-default database queries, and simplified concurrency on top of the PHP ecosystem.


Why Zenith?

Zenith aims to solve specific ergonomic and safety pain points through syntax-level integration:

  • I/O Parallelism: Native spawn blocks that handle PHP Fibers for fetching APIs or DB queries in parallel.
  • Safe-by-default SQL: Inline SQL queries that are validated against your schema at compile-time.
  • Functional Ergonomics: Native pipe operator |> and built-in memoization support.
  • Static Analysis: Built-in Zenith Analyzer for detecting common pitfalls like path traversal and SQL injection. Use #[Unsafe] to bypass checks in performance-critical loops.

Installation

Quick Install (Experimental Only)

# Linux/MacOS
curl -fsSL https://neevets.github.io/zenith/install.sh | sh -s -- -y

# Windows (PowerShell)
iwr -useb https://neevets.github.io/zenith/install.ps1 | iex

To protect users, Zenith will NO LONGER download managed PHP binaries automatically. You must have PHP 8.4 installed on your system or explicitly set ZENITH_AUTO_INSTALL_RUNTIME=1.

See full installer usage in docs/installation.md.

Documentation


License

This project is licensed under the MIT License.


Contributing

Contributions are welcome! Please read the CONTRIBUTING.md file for more information.

About

The modern PHP programming language

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors