Download the PHP package amsrafid/piper without Composer
On this page you can find all versions of the php package amsrafid/piper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package piper
Piper starter application
This is the application you start from. It gives you the directory layout, the config files and the
amsrafid console script, and it pulls in
the framework as a dependency.
If you are looking for the framework itself, meaning routing, the container, middleware, migrations and the token guard, it lives in its own repository and its README is the one that documents them.
Then point a web server at public/. On Apache, public/.htaccess already handles the rewrite.
Set your app key before anything else
env.xml ships with an empty <key>. The framework refuses a request without one of at least 60
characters. That is deliberate, because a token signed with a guessable key is worse than no token
at all.
Paste the result into <app><key> in env.xml, and fill in the database block below it while you
are there. env.xml is git-ignored. env.example.xml is the copy that gets committed, so keep
secrets out of it.
<debug> ships as false. Turn it on while you are building, since it is what puts the stack trace
in the response, and turn it back off before anything is reachable from outside.
What is in here
Your first route
Write a method. That is the whole step, the convention routes it:
When the convention is not enough, say for a slug, a version prefix or a specific verb, declare it:
Both styles work in the same controller. The framework README covers the rest of the attributes, along with middleware, migrations and the token guard.
Console
Requirements
PHP 8.0 to 8.3.
Author
A. M. Sadman Rafid, amsrafid.com · github.com/amsrafid
Security
If you find a security problem, please email [email protected] rather than opening a public issue.
License
MIT.