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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.


All versions of piper with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0 <8.4
amsrafid/piper-framework Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amsrafid/piper contains the following files

Loading the files please wait ...