Download the PHP package vtardia/simphle without Composer

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

Simphle - Quick PHP Development Server

Simphle is a friendly wrapper for PHP built-in web server, with some handy features for an easy developement.

Requirements

Installation

  1. Composer

    Use the global option to install it globally on your system

  2. Custom

    Clone this repository to a shared directory, for example /usr/local/php/simphle or /Users/Shared/php/Simphle on a Mac, then run composer install.

    Add the bin directory to your local path or create a link to the bin/simphle executable:

Usage

Basic

Start a server with default settings in the current directory:

Intermediate

Start a server with custom settings from the command line:

Advanced

Create a server.json file in your project's directory with your custom settings and then launch simphle from inside that path.

The router and ini file paths are relative to the current working directory. The main Simphle script searches for these files in the current working directory first, then in Simphle's share directory. The .php and .ini extensions are not required for preset router and INI files.

The controller file path is relative to the document root directory.

Launch it with Composer

Create a scripts section in you composer.json:

Then launch it using

The default router

Simphle's default router tries to simulate a typical Apache .htaccess file:

If the requested URI exists tries to fetch it, if not it searches for an index.php, finally falls back to a "404 not found" error.

Using a front controller

By specifying a controller settings Simphle uses this file as rewrite target instead of index.php, so you can use for example app.php.

Customizing the environment

The env section defines environment variables that are passed to the PHP files through the $_ENV superglobal. JSON objects are converted to associative arrays.

Sometimes the $_ENV superglobal is not populated. It depends on the variables_order settings in php.ini:

This setting can be overridden by local htaccess or php.ini files.

License

Simphle is licensed under the MIT License - see the LICENSE file for details


All versions of simphle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
symfony/process Version ~2.6
vtardia/cli-parser 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 vtardia/simphle contains the following files

Loading the files please wait ....