Download the PHP package staticka/console without Composer

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

Staticka Console

Latest Version on Packagist Software License Build Status Coverage Status Total Downloads

Console is a terminal-based package of Staticka which allows creating and building of pages through a terminal.

Installation

Installing the Console package is possible through Composer:

Basic Usage

To create a new page, use the create command with its title:

After adding some text to the newly created page, use the build command to compile the .md files to .html:

[!NOTE] Console will try to create the required directories (e.g., build, pages) if they do not exists in the current working directory.

Using staticka.yml

Console typically works out of the box without any configuration. But if there is a need to change the path of its other supported directories or needs to extend the core functionalities of Console, the staticka.yml file can be used in those kind of scenarios:

To create the said staticka.yml file, simply run the initialize command:

After successfully creating the said file, it will provide the following properties below:

root_path

This property specifies the current working directory. By default, it uses the %%CURRENT_DIRECTORY%% placeholder that returns the current directory of the staticka.yml file:

timezone

This allows to change the timezone to be used when creating timestamps of a new page. If not specified, Console will use the default timezone specified in the php.ini file:

assets_path

This specifies the path for all other web assets like images (.jpg, .png) and PDF files (.pdf). Console does not use this specified path but it might be useful to locate the directory for organizing asset files:

build_path

This is the property that will be used by Console to determine the destination directory of the compiled pages:

config_path

One of the properties of Console that locates the directory for storing configuration files. If defined, it will load its .php files to a Configuration class. The said class is useful when creating extensions to Console:

[!NOTE] To allow custom packages for Console, kindly add the specified package class in staticka.yml. Please see the Extending Console section below for more information.

pages_path

This is the location of the generated pages from create command:

plates_path

One of the special variables of Console to specify a directory that can be used for third-party templating engines (RenderInterface):

scripts_path

This is the property for the directory path of script files (.js, .ts). Although not being used internally by Console, this property can be used when extending core functionalities (e.g., compiling .js files through Webpack when running the build command):

styles_path

Same as scripts_path, this property specifies the directory path for styling files (.css, .sass):

Extending Console

Console is based on the Slytherin PHP micro-framework which provides an easy way to integrate custom packages through IntegrationInterface. The said interface can be used to create instances related to Staticka:

To add the specified custom package, kindly add it to the staticka.yml file:

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

The unit tests of Console can be run using the phpunit command:

Credits

License

The MIT License (MIT). Please see LICENSE for more information.


All versions of console with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
rougin/blueprint Version ~0.7
staticka/staticka Version ~0.4
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 staticka/console contains the following files

Loading the files please wait ....