kapitancho / walnut-lang-demos
There is no license information available for the latest version (0.0.7) of this package.
Package info
github.com/kapitancho/walnut-lang-demos
Language:Squirrel
pkg:composer/kapitancho/walnut-lang-demos
0.0.7
2024-04-09 22:10 UTC
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