Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mabasic/phel-web
Getting started Web template for Phel lang.
https://github.com/mabasic/phel-web
hacktoberfest phel project template
Last synced: 14 days ago
JSON representation
Getting started Web template for Phel lang.
- Host: GitHub
- URL: https://github.com/mabasic/phel-web
- Owner: mabasic
- License: mit
- Created: 2021-03-05T16:01:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-16T13:02:34.000Z (about 3 years ago)
- Last Synced: 2024-10-23T00:14:20.614Z (2 months ago)
- Topics: hacktoberfest, phel, project, template
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Phel - Web
Getting started Web template for [Phel](https://phel-lang.org/) lang.
This template creates a namespace called `app` for storing your application logic in `src/` directory, a public directory with `index.php` file for serving, and `app\tests` in `tests/` directory for storing your application tests.
**Requirement: PHP 7.4 or 8.0**
## Installation Via Composer
If your computer already has PHP and Composer installed, you may create a new Phel project by using Composer directly. After the application has been created, you may start the Phel application using the Phel CLI's `run` command:
```bash
composer create-project mabasic/phel-web example-app dev-maincd example-app
php -S localhost:8000 -t ./public/
```When you open the website on `http://localhost:8000` the output will be:
```
Hello, Phel!
```## Shortcuts
- `composer dev` - Starts the PHP development server.
- `composer repl` - Starts the Phel REPL.
- `composer test` - Runs the test suite.
- `composer format {directory}` - Formats the given directory.
- `composer start {script}` - Executes the given script.## Next Steps
From here you can learn more about using Phel from the [official website](https://phel-lang.org/), or view the [source code repository](https://github.com/phel-lang/phel-lang) and contribute to the development of the language and its ecosystem.