Skip to main content

NoPHP

The NoPHP Language for the Modern Web

Not Only PHP - A backwards compatible language focused on modern features and flexibility.

Official Website (WIP) | Docs | Speed (WIP) | Contributing & compiler design

class YourApp {
    private $greeting;
    public function __construct() {
        $this->greeting = "Welcome to NoPHP";
    } 
    public function welcome() {
        echo <h1> $this->greeting </h1>;
    }
}
$app = new YourApp();
$app->welcome();
?debug;

Key Features of NoPHP

  • Easily customizable language featureset
  • Custom syntax for building performant code
  • Write HTML directly, no headaches
  • Extensive and verbose logging
  • Make it your own!

Alpha 0.2.0 and our future

Currently NoPHP is aming for a more or less stable release at 0.2.0. You can find the checklist here

NoPHP is an ongoing project and will continue to recieve updates into the far future. The purpose of this project is to provide a solution that is easy to setup for a new project or to integrate into an existing PHP codebase without massive restructuring.

PHP vs NoPHP

Looking at NoPHP, a question might arise in your mind: What is this for?

To answer this question simply: NoPHP was created to solve issues that are caused by PHP being an old language without the features most developers are used to. Some may consider this otherwise, and we fully welcome those that do to create PRs or issues with their suggestions! The vision of this project is to create a language that is fundamentally different from PHP while maintaining similar functionality and syntactic sugar.

Yes, Laravel exists. However their approach is different, they aim to fix what they see wrong with PHP. Whilst our approach is to create what PHP was meant to be, without sacrificing the comfort of modern languages and idioms.

Installation

Currently NoPHP can be installed via Pipx. This will only install the Python backend, others, such as the Rust backend, are a WIP.

Below is the command needed to get started:

$ pipx install nophp

Your first project

NoPHP currently provides a command to create a simple new project. It will have the basics to get you started.

$ nophp -n my_cool_project

The command above will create a new directory named my_new_project containing the bare minimum to get you up and developing!

Example projects

Currently available examples are few as the language is relatively new. The best ones to explore are listed below.

  • NoCMS - This is a project created for the Web Development 1 course at Inholland University of Applied Sciences. It's a simple CMS website that allows it's users to create and manage a blog.

Thank you to

  • Kunal Dandekar - For support and aid in the Rust backend
  • Vlang - For their README which was used to create this one

Release files for nophp 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nophp 0.1.8
File Size Uploaded
nophp-0.1.8.tar.gz 125.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nophp 0.1.8
File Interpreter ABI Platform
nophp-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 175.2 kB

Release files / nophp-0.1.8.tar.gz

Download URL nophp-0.1.8.tar.gz
Size 125.7 kB
Tags Source
SHA-256 checksum
How to use checksums
697a6eab7b59bb2baa70b0a5dfe5e8df11e36e5ee1c224e5c46fbf2bc59e05da
BLAKE2b-256 checksum
How to use checksums
b77a06f7db97016f7d5b7653cf239f86eab5c964afcd80b4f4812eceb553f75a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.12.2 Linux/6.7.10-200.fc39.x86_64

Release files / nophp-0.1.8-py3-none-any.whl

Download URL nophp-0.1.8-py3-none-any.whl
Size 49.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe827434edff0f75297debf87d61cc115787381a90300a35ee09e2727381c400
BLAKE2b-256 checksum
How to use checksums
8d15e2ad44bf0c312322179bd19dc746a1c2596130b7e74dee0fe180ed94fbc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.12.2 Linux/6.7.10-200.fc39.x86_64
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page