Download the PHP package walnut/lang without Composer

On this page you can find all versions of the php package walnut/lang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lang

Walnut Language

A strongly-typed, functional programming language for modeling and executing business logic with precision and clarity

Tests codecov Version License PHP

Overview

Walnut is a modern functional programming language that combines powerful type system features with practical programming constructs. Designed for building robust applications, Walnut emphasizes type safety, immutability, and clear error handling while maintaining excellent developer ergonomics.

Key Features

Quick Start

Installation

Choose your installation method:

Option 1: Standalone CLI (Recommended for Development, requires PHP 8.4+ installed)

Download the latest CLI bundle (includes everything needed):

Download walnut-cli.tar.gz

Extract and run:

Option 2: Via Composer (For PHP Projects)

Option 3: Production HTTP Server with RoadRunner

Download the server bundle for your platform:

Hello World

Create a file hello.nut:

Run it:

Language Highlights

Powerful Type System

Walnut features one of the most expressive type systems among programming languages:

Functional Programming

First-class functions, immutability, and powerful transformation operations:

Error Handling with Result Types

Type-safe error handling without exceptions:

Method-Oriented Design

Attach behavior to types with methods:

Type-Safe JSON Hydration

Convert external data to typed values with validation:

Built-in Dependency Injection

Every function or method can declare dependencies that are automatically resolved at compile time:

Documentation

Walnut comes with comprehensive documentation organized into 5 major parts:

📚 Complete Language Specification

Part I: Fundamentals

Part II: Type Definitions

Part III: Functions, Methods, and Control Flow

Part IV: Built-in Library

Part V: Advanced Features

Examples

Web Service Example

Data Processing Pipeline

Resources

Project Structure

Philosophy

Walnut is designed around several core principles:

  1. Type Safety First - Catch errors at compile time, not runtime
  2. Immutability by Default - Predictable, side-effect-free code
  3. Explicit Over Implicit - Clear intent and dependencies
  4. Business Logic Focus - Express domain models precisely
  5. Developer Ergonomics - Concise syntax without sacrificing clarity

Distribution Models

Walnut is available in two independent distributions:

walnut.phar (Pure CLI)

walnut-roadrunner (Production Server)

Why separate? The CLI doesn't need RoadRunner code, so we keep it lightweight. The server bundle is self-contained and ready to deploy.

Contributing

Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest features through the issue tracker.

License

Walnut Language is open-source software licensed under the MIT license.

Acknowledgments

Walnut draws inspiration from functional languages like Haskell and ML, type systems from TypeScript and Flow, and practical features from modern languages like Rust and Kotlin.


Ready to start? Check out the Online Demos!


All versions of lang with dependencies

PHP Build Version
Package Version
Requires php Version >=8.5
kapitancho/walex Version ^0.0.1
ext-mbstring Version *
ext-bcmath Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package walnut/lang contains the following files

Loading the files please wait ...