Download the PHP package jakobjohansson/kiwi without Composer

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

kiwi Packagist Codacy Badge StyleCI

kiwi is a minimalistic and lightweight blog framework for php.

Documentation

Kiwi can be installed via Composer:

Configuration

Included in the package is a .env.example file, which should be renamed to .env and omitted from version control. It is a simple environment file containing fields for database settings, user settings and more general application settings. Kiwi will not run without this file.

After this is done, you should head to the /migrate route to migrate the default SQL tables.

Routes

Custom routes can be set in the app/routes.php file, pointing a route towards a controller and a target method:

Controllers

All controllers reside in the app/Controllers directory. An example controller is included with the following methods:

Notice the type hinted Post parameter in the show method. It will be automatically injected when you provide a wildcard in your route!

Middleware

You can apply custom middleware by creating a middleware() method in your controller. It will run on every request directed towards the controller.

Views

As seen in the example above, views can be requested from a controller method by stating View::render($viewpath, $arrayOfData). The view path is relative to the app/Views folder, with a suffixed .view.php added at the end, meaning you can simply enter the file name.

Templating

Kiwi supports templating similar to that of Laravel Blade:

At the time of writing, the following directives are supported:

Validation

Validation is rather simple with kiwi. Simply access a form field using the Input class, which takes the field name as the first parameter and an array of rules as the second parameter:

The supported rules can be found in the Rule class. At the time of writing, the following rules are supported:

If validation fails, kiwi will redirect back with access to an $errors variable, containing all the data you need to display an informative error message!

License

Kiwi is MIT licensed, meaning you are free modify and do as you wish with the code.


All versions of kiwi with dependencies

PHP Build Version
Package Version
Requires php Version ^7.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 jakobjohansson/kiwi contains the following files

Loading the files please wait ....