Download the PHP package kugarocks/bookstack-content-sync without Composer

On this page you can find all versions of the php package kugarocks/bookstack-content-sync. 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 bookstack-content-sync

bookstack-content-sync

Pulling BookStack content into a local directory, making changes, and pushing it back.

Requirements

Quick Start

Initialize Directory

Create a local content directory and starter sync.json:

init-content-dir

This command creates the target directory if needed, writes sync.json, and reminds you which environment variables to export before running a pull.

Pull Content

pull-content

Push Plan

push-plan

Push Execution

push-execution

How it Works

This system performs a one-way sync from local content to BookStack by computing state differences and applying them to the remote.

Push Mechanism

Behavior & Constraints

Slug Behavior

Empty Page Behavior

Installation

Packagist

Local Development

For local development against an unpublished working tree, add the local repository to the BookStack host composer.json:

Then require the package from the BookStack host:

The @dev suffix is only needed for local path installation while the package is resolved as dev-main.

Global Wrapper

Create a global command that can be run from any content directory:

The wrapper reads sync.json in your current directory and runs the matching BookStack artisan command using bookstack_path.

Setup

Set the global BookStack path (one-time setup):

This creates ~/.config/bookstack-content-sync/config.json with your BookStack installation path.

Usage

Configuration

Path resolution priority:

  1. bookstack_path in current directory's sync.json
  2. Global config at ~/.config/bookstack-content-sync/config.json
  3. Error if neither is found

Example sync.json with project-specific path:

When running bookstack-sync init, the bookstack_path is automatically written to sync.json using the global config value.

Testing

Install dependencies and run the full package test suite:

Test boundaries:

Run only unit tests:

Run only integration tests:

Run pull-focused tests:

Run push-focused tests:


All versions of bookstack-content-sync with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/psr7 Version ^2.8
illuminate/console Version ^12.0
guzzlehttp/guzzle Version ^7.9
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 kugarocks/bookstack-content-sync contains the following files

Loading the files please wait ...