Download the PHP package asaokamei/slim4-starter without Composer

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

Slim4 and PHP-DI Starter Project

A starter project for ordinary web sites, based on slim/slim-skeleton.

Uses,

License

MIT License

Demo

installation.

run demo, after installation.

AbstractController

App\Controllers\AbstractController provides useful features, such as;

For instance, the method onPost is executed when http method is post.

execution of method.

  1. if action method is present, always execute action.
  2. check http method, and execute on{$method}.
  3. post with _method to specify http method other than 'GET' and 'POST'.

bind argument

For route, /users/{user_id}, the argument $user_id is bound with the route variable, {user_id}.

modify input value

You can modify the input value using a arg{$InputKey} method in a controller.

Twig Functions

additional functions for Twig.

csrf_token()

CSRF tokens in hidden tag for Slim-Csrf. (was hidden_csrf_token())

path(string $routeName, array $data = [], array $queryParams = [])

Get the url for a named route (same as url_for() in slim/twig-view).

url(string $routeName, array $data = [], array $queryParams = [])

Get the full url for a named route. (same as full_url_for() in slim/twig-view).

More Functions from slim/twig-view.

is_current_url(string $routeName, array $data = [])

check if the route name is the current URL.

current_url(bool $withQueryString = false)

Get the current path.

get_uri()

Get Psr\Http\Message\UriInterface object.

base_path()

Get base path string.


All versions of slim4-starter with dependencies

PHP Build Version
Package Version
Requires nyholm/psr7 Version ^1.3
nyholm/psr7-server Version ^1.0.0
slim/http Version ^1.0
slim/csrf Version ^1.0
slim/slim Version ^4.0
monolog/monolog Version ^2.0
php-di/php-di Version ^6.1
vlucas/phpdotenv Version ^5.2
slim/twig-view Version ^3.0
ext-json Version *
filp/whoops Version ^2.7
aura/session Version ^2.1
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 asaokamei/slim4-starter contains the following files

Loading the files please wait ....