Download the PHP package ginger-tek/jerpy without Composer

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

jerpy

Small | Zero Dependencies | Flat-file


Jerpy a small, zero-dependency, flat-file content management system (CMS) built for control and simplicity that is easy to installs, customize, and maintain.

This was built to be as streamlined and stripped-down as possible, so it's meant to be administered directly via the files and there's no admin web panel.

Getting Started

Composer

Jerpy is super easy to get setup. Simply run the following to get started:

File/Folder Structure

config.php

All site settings are set in the config.php file, including timezone, selected layout, enabled plugins, and page routes.

Layouts

The layouts directory stores layout templates, each their own .php file. The default global theme is set in config.php via the $layout property.

Assets

This is the global assets directory, in which you can organize your CSS, JavaScript, fonts, and images to use in your layouts and pages via absolute URI:

Pages & Routes

The pages directory stores the page contents for the site, and are configured for each route in config.php.

You can define a route as a key with either a string pointing to the file, or an associative array with a page key and other options to change how the page is rendered.

To use a different layout than the default, set the layout option:

If you don't want any layout to be used at all, set the layout option to false, which will just render the page by itself.

Additional arbitrary properties can also be set for metadata/SEO purposes:

You can then implement your additional properties in your layout, such as for social media SEO tags. Use the @ warning suppressing syntax for when some routes don't have the property specified:

Dynamic Routes

You can also specify non-static matching routes for the key string. Use the :param syntax to dynamically match a route and have its parameters set to the parsed values from the incoming URI:

Templating

PHP's built-in templating is still sufficient for most user-cases nowadays. As such, just use include and require as you would normally for templating your site, parsing content as needed (see plugins below).

Global Variables

There are a couple of global variables you can always reference in a layout or page file: $req and $page Name Data Type Note
$req object The current request, contains properties uri, method (HTTP Method), query (object of URL query parameters), and params (object of dynamic route parameters)
$page string Path to the page file being rendered

Plugins

Plugins can be made to extend or add functionality to Jerpy. They do not require any specific framework nor follow any particular design pattern. The only requirement for plugins is that the entrypoint is a .php file with the same name as the plugin's folder. From there, you can use whatever preferred tools and package managers to create the plugin code.

Plugins are loaded globally, and their top-level objects, functions, and/or classes are accessible from all layouts and pages.

To add a plugin, simply copy/upload the plugin's folder to the plugins directory.

To enable a plugin, add it's folder name to the $plugins array in config.php.

Below is an example plugin for using Parsedown via a wrapper method:

plugins/md/md.php

config.php

pages/some-page.php


All versions of jerpy with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.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 ginger-tek/jerpy contains the following files

Loading the files please wait ....