Download the PHP package dragonee/php-silverplate without Composer

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

php-silverplate

Forget to include header.php and footer.php anymore.

PHP Silverplate serves your static content on a silver platter. It does not matter if you need to write simple, one-page website, or a whole book - PHP Silverplate accepts any HTML or Markdown file and displays it inside a predetermined layout file. Pretty URLs and HTML5 Boilerplate included.

Quickstart Guide

Use Composer to download the stable version:

$ curl -s https://getcomposer.org/installer | php
$ php composer.phar create-project dragonee/php-silverplate

Make your changes in the index.php file. Add necessary style declarations to the css/main.css. Then access the main directory of PHP Silverplate installation with your web browser.

Features

Usage

When an user navigates to the arbitrary URI, for example /example, app.php begins to search for corresponding file in the following order:

app.php is completely transparent and relies on the filesystem to find files. That means you are able to structure your files in subdirectories any way you want.

app.php does not allow accessing files that are outside the directory app.php is located in. This also affects symbolic links.

Blocks

You can provide blocks in the layout file that can be overwritten by data specified in the content file. The most common use case is to provide the <title> tag of the document.

In order to define a block, put a get() function in the layout file:

<title></title>

You can override the default value of the title block by setting it in the content file:

Or in the Markdown file:

Meta title: Another page

In PHP content files you can also open() and close() multiline blocks:

    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.plugin.js"></script>
    [...]

Currently Markdown files do not have any support for the opening and closing blocks.

Custom Layouts

In order to specify custom layout file for a content file, fill a layout block:

or:

Meta layout: my_layout

Make sure, that the my_layout.php file is present before using it.

Relative URLs

With the release of v0.8.1, PHP Silverplate gives you a way to write paths in your layout and content files in a relative maneer to the application root directory.

Design

You can style your files differently based on their type. app.php provides your layout.php file with two different classes:

These classes can help you distinguish between styles specific for your Markdown document layouts and between your PHP layouts.

The layout.php provided in this distribution also defines the classes block, which can be used to build some conditional CSS styles for some files on your website.


All versions of php-silverplate with dependencies

PHP Build Version
Package Version
Requires dflydev/markdown 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 dragonee/php-silverplate contains the following files

Loading the files please wait ....