Download the PHP package grrr-amsterdam/simply-static-deploy without Composer

On this page you can find all versions of the php package grrr-amsterdam/simply-static-deploy. 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 simply-static-deploy

Simply Static Deploy

This repository is archived

❗️ GRRR no longer maintains this plugin.

We recommend using the Pro plan of the Simply Static plugin. When we started this plugin, it fixed the lack of a deployment feature in Simply Static. Since then, the plugin has been updated, and the Pro plan offers exactly what we were missing.
GRRR has contributed code and features to the Simply Static plugin, and we're happy to see it grow.
We suggest taking a look, it's well worth the investment.

Thanks to everyone who has taken an interest in this plugin!
If you've enjoyed using this plugin or were inspired by it in any way, maybe you'd like to follow our blog, where we write about our work and the things we learn along the way: grrr.tech.


Deploy static sites easily to an AWS S3 bucket

Developed with ❤️ by GRRR

Generate and deploy user interface

Screenshot of Simply Static Deploy plugin interface for WordPress

Single page/post deploy user interface

Screenshot of plugin interface for deploying a single page

Minimum requirements

This plugin requires:

Installation

This plugin needs to be installed using Composer.

Make sure you have the right installer paths configured in your composer.json. This has to be done before requiring the package:

Install via Composer:

If you're not using Composer in your project yet, make sure to require the Composer autoloader. A good place would be in your wp-config.php:

Usage

First define SIMPLY_STATIC_DEPLOY_CONFIG in your WordPress configuration:

Then configure the Simply Static plugin via the admin interface. The most important setting to get right is:

Other settings which you should pay attention to:

If everything is configured correctly, hit Generate & Deploy in the Deploy tab.

Documentation

Features

Single post deploy

Pages/posts come with single deploy button, so that a single page can be generated and deployed, see single page/post deploy user interface.

Single recursive deploy

A single post or page deploy can also be done recursively by checking the recursive option, see checkbox in single page/post deploy user interface. When 'recursive' has been checked all pages/posts that containt the url of the current page/post will be generated and deployed as well.

Available filters and actions

Available filters to modify settings and data passed to the plugin:

Available actions to invoke or act upon:

Filters

Adjust additional files

Modify entries from the 'Additional Files and Directories' option. By default all paths are temporarily resolved to absolute paths via realpath, to ensure symbolic links are resolved. An array of unmodified files from the options is passed as an argument.

Note: during generation of the static site, the additional_files setting is updated. It is restored when finished.

Adjust additional files for Single deploy

When doing a single deploy only the given page/post will be generated, including the files given in the Simply Static 'Additional files' setting. You can change these additional files for single deploys via the simply_static_deploy_single_additional_files filter. It takes two arguments: the first one is an array of filenames, the second one is the Simply Static Options instance.

Adjust additional URLs

Modify entries from the 'Additional URLs' option. This can be useful to add pages that can't be found by Simply Static (not in the sitemap, are excluded by a password, have noindex, etc...). An array of unmodified URLs from the options is passed as an argument.

Note: during generation of the static site, the additional_urls setting is updated. It is restored when finished.

Modify Recursive excludable

This filter adds the option to customize the excludable url setting. This can be useful when for instance you want to ignore exclusions when an url contains the recursive parent url.

Actions

Handle errors

Called from the plugin, and receives a WP_Error object explaining the error. You can decide how to handle the error, for instance by logging it with a service of choice.

Completed static deploy job

This will be triggered after all deploy tasks are finished. The first and only argument you will get in the callback function is the Simply Static options instance.

Modify generated files

Called when Simply Static is done generating the static site. This allows you to modify the generated files before they're being deployed. The static site directory is passed as an argument.

Schedule deploys

Schedule a deploy event.

Arguments:

Note: it is important that WP-Cron is called regularly. You could do so by disabling the default WP-Cron mechanism and switch to calling it via a dedicated cronjob.

To disable the default WP–Cron (which is normally called when a user visits pages), add the following to your WordPress configuration:

Create a cronjob calling the WordPres WP-Cron. Setting it to every 5 minutes would be a good default. For example via crontab -e on a Linux machine:

Common issues

Check the installation instructions, and require the Composer autoloader in your project.


All versions of simply-static-deploy with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
aws/aws-sdk-php Version ^3.87
composer/installers Version ^1.8
grrr-amsterdam/garp-functional Version ^5.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 grrr-amsterdam/simply-static-deploy contains the following files

Loading the files please wait ....