Download the PHP package fm_ph/quark without Composer

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

build status packagist version php-version composer.lock

Server part of quark framework handling mainly the routing and templating.

Features

Installation

Get Composer and run :

Note : You need at least PHP 7.x (CLI) installed on your machine to use this package (verify it with php -v).

For OS X users, you can easily update it on https://php-osx.liip.ch/.

Usage

Basic

Get an Application singleton instance and render matched route template.

Custom configuration

Init Application with custom configuration.

Configuration

All configuration properties that can be passed to init() method on an Application instance.

Old browser

Property Type Description Default
old_browser array List of old browsers. See Config.php

Locale

Property Type Description Default
locale.code string Locale code fallback. en
locale.country string Locale country fallback.
locale.redirectIfOne boolean Router redirect to include locale in URL if only one is found. false

Paths

Property Type Description Default
paths.locales string Path to locale files. locale variable is replaced with the current locale. locales/{{locale}}.yml
paths.routes string Route file path. routes.yml
paths.manifest string Manifest file path. manifest.json

Twig

Property Type Description Default
twig.layouts array Twig layouts name. See below
twig.layouts.default string Twig default layout name to be rendered. default
twig.layouts.old_browser string Twig old browser layout name. old
twig.extension string Twig template file extension. .twig
twig.cache string Twig cache path. cache
twig.extraData any Twig extra data merged with template data. []
twig.paths.views string Views folder path. views
twig.paths.layouts string Layouts folder path. views/layouts
twig.paths.pages string Pages folder path. views/pages
twig.paths.components string Components folder path. views/components
twig.extensions array Twig extensions (manifest and html compress extensions are activated by default). []
twig.filters array Twig filters. []
twig.globals array Twig globals. []
twig.functions array Twig functions []
twig.tests array Twig tests. []

API

See https://fm-ph.github.io/quark-server/

Testing

Install PHPUnit globally :

And run the tests with :

License

MIT Fabien Motte


All versions of quark with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
fig/http-message-util Version ^1.1
filp/whoops Version ^2.1
geocoder-php/chain-provider Version ^4.0
geocoder-php/free-geoip-provider Version ^4.0
geocoder-php/geo-plugin-provider Version ^4.0
geocoder-php/host-ip-provider Version ^4.0
gpolguere/path-to-regexp-php Version dev-master
hassankhan/config Version ^0.10.0
nochso/html-compress-twig Version ^2.0
php-http/guzzle6-adapter Version ^1.1
php-http/message Version ^1.5
symfony/yaml Version ^3.2
twig/twig Version ^2.4
whichbrowser/parser Version ^2.0
willdurand/geocoder Version 4.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 fm_ph/quark contains the following files

Loading the files please wait ....