Download the PHP package datashaman/tongs without Composer

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

tongs

Static site generator using Laravel Zero. Heavily based on metalsmith. WIP.

example site

Source code for the example site is at datashaman/tongs-example.

The built files are deployed at tongs-example.datashaman.com.

source and destination

The source and destination configs can be a string or a config array for a Laravel filesystem.

If it's a string, a local filesystem is created with the root set to directory/source values, where directory will be the current working directory if you use the command-line app.

For example:

{
    "source": "src",
    "destination": {
        "driver": "s3",
        "region": "eu-west-1",
        "bucket": "example.com"
    }
}

Will build from src directory to the root of an S3 bucket named example.com using the default AWS credentials.

plugins

The following plugins are provided by this package:

collections

Add posts to collections metadata by adding a collection value in front matter or matching files with a pattern (it uses fnmatch.

For example:

{
    "plugins": {
        "collections": {
            "posts": "posts/*.html",
            "other": {
                "pattern": "other/*.html"
            }
        }
    }
}

Will create two collections in metadata at $collections['posts'] and $collections['other']. If you also add collection: featured to posts' frontmatter, you can access the collection of those posts at $collections['featured'].

drafts

Mark posts as being a draft so they are not built.

For example:

{
    "plugins": {
        "drafts": truu
    }
}

will remove a post with draft: true in frontmatter.

markdown

Render Markdown files into HTML.

For example:

{
    "plugins": {
        "markdown": {
            "breaksEnabled": true,
            "strictMode": true
        }
    }
}

will convert the content from Markdown to HTML (and rename files) using a Parsedown parser. The configuration object is mangled to create config calls to the parser.

For example, the above will configure the parser with setBreaksEnabled(true) and setStrictMode(true). Consult the source code for the options.

views

Render views and layouts to HTML using Blade views.

For example:

{
    "plugins": {
        "views": {
            "paths": [
                "views"
            ],
            "compiled": ".cache"
        }
    }
}

Put view: post frontmatter in a post and it will be rendered from views/post.blade.php with Blade. Local view variables are made up the post frontmatter and the global metadata values.

More plugin packages:

To create your own plugins, look at the plugin template.


All versions of tongs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
erusev/parsedown Version ^1.7
illuminate/log Version ^6.0
illuminate/pipeline Version ^6.12
illuminate/view Version ^6.12
laravel-zero/framework Version ^6.0
symfony/filesystem Version ^4.0
symfony/finder Version ^4.3.4
symfony/process Version ^4.3
webuni/front-matter Version ^1.1
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 datashaman/tongs contains the following files

Loading the files please wait ....