Download the PHP package jeremyharris/build without Composer

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

Build
Status

Build

A little static site generator, built specifically to build little sites with blog posts.

Installation

composer require jeremyharris/build

Features

Usage

Only files that have been modified since you last built will be built. You can optionally pass true to build() to force build all files. You can then get full paths to newly built files:

If you want to manually add build files that aren't within the expected structure, you can do so:

Blogging

Some blogging functionality is provided in the \JeremyHarris\Build\Blog class. It assumes a YYYY/MM structure. The Blog class is helpful for building an archive page or getting the latest post. Items returned are \JeremyHarris\Build\Blog\Post objects that contain some helpful methods.

RSS

To create an RSS feed, you must tell the builder that you want one and pass some required settings that the feed needs in order to generate:

The generator will then automatically create a basic RSS feed for you. The file will be in the root of your built site. Only the last 20 blog posts will be included in the feed.

Site target structure

The site target should have a layout like the one below. Anything in /webroot is copied directly to webroot, allowing flexibility in not using views. Items in /views are wrapped in layout.php and placed into the directories they reside in. Views can be php or markdown.

Titles are assumed from the filename slug, so interesting-article-about-things.md is titled "Interesting Article About Things".

And builds it into a site like this:

Note rss.xml will only exist if you added an RSS feed before build.

Example site


All versions of build with dependencies

PHP Build Version
Package Version
Requires league/commonmark Version ~0.6
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 jeremyharris/build contains the following files

Loading the files please wait ....