# Learn By Example
A hands-on introduction to Chevere using example scripts.
# Examples Repository
The repository chevere/examples holds a variety of working examples that will help you to learn how to use Chevere.
👍🏾 Feel free to contribute to this repository
# Installing
- Clone the repository (requires git).
git clone git@github.com:chevere/examples.git
Will clone it to examples/
- Install the dependencies (requires Composer).
composer install --ignore-platform-reqs
The dependencies will be at vendor/
.
# Browsing
Each folder represents an example topic, like 00.HelloWorld/ for "Hello, World" or 02.VarDump/ for VarDump component.
👴🏾 All files and folders use a numeric index representing levels of complexity
# Running
php <pathToScript>
To run the ubiquitous "Hello, World":
php 00.HelloWorld/00.controller.php
# Recommendations
- Use an IDE for code and reference highlighting
- Check the interfaces and exceptions reference
- Check Chevere\Tests namespace which contains testing on everything
# Contributing
The examples repo is a playground, everything concerning potential uses is welcome.
Feel free to suggests examples that should be added or to share your own.
🧔🏾 Try to think about Chevere as butter, you want it (mostly) everywhere