kapitancho / walnut-lang-demos
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Squirrel
Requires
- php: >=8.2
- kapitancho/walnut-lang-cli-adapter: ^0.0.6
- kapitancho/walnut-lang-psr-http-adapter: ^0.0.6
README
A set of a bit chaotic but extensive examples of the Walnut language.
Installation
To install the latest version, use the following command:
$ composer require kapitancho/walnut-lang-demos
Usage
Provided that the code is served by a Server supporting PHP files, open public/index.php in a browser, explore the code and see the execution results.
Use with Docker
To run the demos in a Docker container, use the following commands:
$ docker compose build $ docker compose up -d
Then open http://localhost:8068/public/ in a browser.
Introduction to Walnut-Lang
Some notable demos
- Fibonacci
- Fizz Buzz - 3 versions
- Books in a Library
- Hydration
- Members model
- Using a database
- Interface-like casts
- JSON
- Subtypes