Download the PHP package knuckleswtf/pastel without Composer

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

This package is deprecated. It was a good idea, but Scribe now uses a different system where it generates HTML directly. You can still use this as a basic PHP-based static site generator, but there won't be any new features or maintenance. For more fully-featured PHP SSGs, see jamstack.org/generators/.

Pastel 🎨

Latest release Build Status Total Downloads

Pastel is a tool for generating pretty API documentation from Markdown. Write your docs in Markdown and let Pastel convert it to a HTML page, complete with:

Want to see it in action? Here's what the output looks like.

Pastel was forked from Documentarian, which is itself a PHP port of Slate, the API documentation tool. Here's a Node.js version.

Table of contents

Installation

Usage

With Pastel, you write your docs in Markdown, and you get complete HTML/CSS?JS output. Here's what you need to know:

Writing your docs in Markdown

Start off with a single Markdown file. There are two parts:

The content

Your Markdown file should contain your docs, written as you like. There's no set format, but you can start with an introduction, talk about authentication and any general details, then describe each endpoint in its own section. Write example requests and responses using code blocks, use tables or paragraphs to describe request and response parameters.

There's a good example in the included example Markdown (docs/index.html).

Pastel uses the same Markdown syntax as Slate. See How to Edit Slate Markdown files

The front matter

The front matter is a YAML section in your Markdown file that comes before the actual content. It's separated from the main content by a line before and after it containing only "---" (see stubs/index.md).

The front matter provides "meta" information about a Markdown document's contents (in this case, the API doc). You can use it to customise how your documentation will look like. Here are the values Pastel supports:

you can append the other files to index.md by using

You can also use * as a wildcard. In this case, files matching the pattern will be included in alphabetical order.

Most of these sections can be disabled in the generated documentation by omitting them from the front matter.

Converting your Markdown file to HTML docs

This will generate the HTML output from the file docs_source/index.md and place it, along with the needed CSS and JavaScript in your docs/ directory. You can replace docs_source/index.md with vendor/knuckleswtf/pastel/stubs/index.md to use the sample Markdown docs included with this package.

You can also call Pastel from PHP. This is especially useful if you're building a tool on top of it (see Integrations below. Here's how you'd use it:

Styling helpers

Badges

You can easily add badges by using the badge CSS class, along with one of the badge-<colour> classes.

Available colours:

Fancy headings

You can help your lower-level headings stand out by using the fancy-heading-panel class:

Notes and Warnings

You can add little highlighted warnings and notes using the <aside> tag and either of the classes "notice", "warning", or "success".

Integrations

Todo


All versions of pastel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
mnapoli/silly Version ~1.0
illuminate/support Version ^5.8|^6.0|^7.0|^8.0
illuminate/view Version ^5.8|^6.0|^7.0|^8.0
mnapoli/front-yaml Version ^1.7.0
windwalker/renderer Version 3.*
ext-json Version *
shalvah/clara Version ^2.0.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 knuckleswtf/pastel contains the following files

Loading the files please wait ....