Download the PHP package badluck/badrouter without Composer

On this page you can find all versions of the php package badluck/badrouter. 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 badrouter

BadRouter

A minimalist router inspired by Ruby's Sinatra router.

Visit the official documentation page here: https://badrouter.badluck.io

Install

1. Run composer require badluck/badrouter in your project directory to install the package and its dependencies.

2. Require the autoloader. At the beginning of your PHP file, require the Composer autoloader by adding this line of code:

3. Use the Router static class.

You can use ::get, ::post, ::put, and ::delete. BadRouter supports dynamic routes in {braces}.

4. Configure the view and public directories.

The public directory is where the router will search for static files if the URI is not a route. The views directry is where Router::render will search when rendering pages.

5. After the router is configured, run it.

Full Usage example

Change Log

Log types:

v0.4.5 (2023-07-26)

v0.4.4 (2023-05-03)

v0.4.3 (2023-05-03)

v0.4.2 (2023-05-03)

v0.4.1 (2023-05-02)

v0.4.0 (2023-05-01)

v0.3.4 (2023-04-26)

v0.3.3 (2023-04-24)

v0.3.2 (2023-04-18)

v0.3.1 (2023-04-17)

v0.3.0 (2023-04-17)

v0.2.5 (2023-04-13)

v0.2.4 (2023-04-13)

v0.2.3 (2023-04-13)

v0.2.2 (2023-04-13)

v0.2.1 (meow)

v0.2.0 (2023-04-11)

v0.1.3 (2023-04-06)

v0.1.2 (2023-04-05)

v0.1.1 (2023-04-05)

v0.1.0 (2023-04-05)


All versions of badrouter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.33
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 badluck/badrouter contains the following files

Loading the files please wait ....