Skip to main content

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

Project description

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

[!NOTE] Please note, NoPHP is highly experimental and bugs are to be expected. Please create an issue on GitHub as soon as possible if you encounter any!

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nophp-0.1.9rc1.tar.gz (132.8 kB view details)

Uploaded Source

Built Distribution

nophp-0.1.9rc1-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file nophp-0.1.9rc1.tar.gz.

File metadata

  • Download URL: nophp-0.1.9rc1.tar.gz
  • Upload date:
  • Size: 132.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.12.2 Linux/6.7.10-200.fc39.x86_64

File hashes

Hashes for nophp-0.1.9rc1.tar.gz
Algorithm Hash digest
SHA256 30bce7acabce4abfae8177e446f4dd1a1a54d38f00de5f6efde2d20f870594b9
MD5 dec647e142ccdcc7b57215caa90c0b69
BLAKE2b-256 9542d6fdd47c4ce32b2e408d34e5d4c9b62aba40cd97a57adbb6e39ea851a586

See more details on using hashes here.

File details

Details for the file nophp-0.1.9rc1-py3-none-any.whl.

File metadata

  • Download URL: nophp-0.1.9rc1-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.12.2 Linux/6.7.10-200.fc39.x86_64

File hashes

Hashes for nophp-0.1.9rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b4b2a9d21e591bdc79ae31e017fec536c8f9efbea2cccd180f094f83e8c2735
MD5 74a22b644fae2556160fd2828d5fcfa9
BLAKE2b-256 130e6043ebf489537bfa4dae44762f094d0300e857c30984d7a6a45d9d192ae2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page