Download the PHP package mrpunyapal/docsmith without Composer

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

Docsmith

Latest Version on Packagist Total Downloads on Packagist CI PHP Version Compatibility Laravel Boost Skill

Craft static documentation sites from Markdown with minimal setup.

Docsmith is designed for package and project documentation where you want a fast build flow, a clean default UI, and zero frontend setup.

Features

Installation

Using AI agents (Claude Code, Cursor, Boost, ...)? Docsmith ships installable skills:

Quick Start

Create a build script (example: build-docs.php):

Run it:

This writes the generated site into docs by default.

Fluent API

You can change the accent color at build time. Docsmith derives the softer hover and focus colors from the accent, so hex colors give the best results.

If you need to apply ad-hoc overrides, you can append custom CSS during the build:

Or pass a path to a CSS file which will be appended to assets/app.css:

Search Behavior

Docsmith ships two search experiences out of the box:

The global search index is generated during each build and is static-hosting friendly.

Favicon

Docsmith generates and links a default favicon for every built page. You can override it with a URL, data URI, or a path to a local image file:

Local favicons are copied into assets/ and linked with the correct relative path for each page.

Media

Images, videos, audio, and PDFs kept in the source directory are published into the built site automatically:

Docsmith copies every media file with its relative path. Supported types: png, jpg, gif, svg, webp, avif, ico, bmp, mp4, webm, mov, m4v, ogv, mp3, wav, ogg, m4a, flac, aac, pdf.

Built pages sit one level deeper than the source mirror (guides/configuration.md becomes guides/configuration/index.html), so relative references are rewritten per page: images/setup.png on that page is emitted as ../images/setup.png.

Remote URLs, root-relative paths (/assets/...), data URIs, and files that were not published are left untouched.

Disable publishing and rewriting with:

Open Graph Images

Docsmith can emit og: and twitter: card tags and generate social preview images for you.

Generated images use Node with two packages: Playwright (browser) and capturist (capture runner). Install them once as devDependencies — you do not need to write or maintain a capturist config; Docsmith writes it during the docs build.

Requires capturist ≥ 0.1.3 for incremental capture (skip unchanged cards). If Open Graph generation is enabled and these tools (or the Chromium browser) are missing, the docs build fails with the same install instructions.

In CI, install Node deps and Chromium before a docs build that runs capture (or use runCapturist(false) and capture in a later step).

Single default image for all pages

This renders one preview card, captures it to docs/og/cover.png, and points every page at it.

Default generated image per page

Each page gets its own preview at og/<page>.png.

Custom generated template

Pass a file path or raw HTML snippet. The tokens {site_title}, {title}, and {description} are replaced per page:

The template is rendered inside a 1200×630 shell, so you only need the card markup.

Link to an existing image

The link can be an absolute URL or a root-relative path.

Advanced / low-level

If you prefer, the structured ogImage(...) method exposes every option:

Per-page overrides via frontmatter

Individual pages can override the image, title, or description used in their OG tags:

Capture step (advanced)

By default, enabling a generated OG mode runs capture during build().

Capture is incremental via capturist’s built-in cache. Docsmith writes cache into capturist.config.json (manifest at og/.capturist-cache.json). Unchanged preview HTML skips Playwright; rebuilds print Open Graph images up to date.

Force a full regenerate by deleting og/*.png and/or og/.capturist-cache.json, or run capturist with --force.

Skip the capture step (e.g. CI that installs Playwright later):

Force a full recapture (ignore cache):

HTML card previews and capturist.config.json are still written under the output directory so a later capture step can use them.

CI with Open Graph

README Index Compatibility Mode

For repositories that maintain docs links in README sections, you can import that structure directly.

Supported list styles include patterns used by:

Versioned Docs

Multiple versions of one documentation set. Pages get v1/v2/v3 pill buttons; no dropdown.

Each version reads md/{slug}/; the default version mounts at the site root, siblings under /{slug}/. See Versioned Docs.

Docs Hub

Several independent documentation sets in one site, one sidebar dropdown to switch between them.

Each entry gets one dropdown option mounted at /{slug}/; a hub entry may embed its own versions list for pills on its pages. See Docs Hub.

Remote Sources

Pull Markdown from other Git repositories into your build — no git binary, no provider APIs, no clones. DocSmith speaks standard Git smart-HTTPS directly and works with any host.

Plain builds never touch the network; without a docsmith.sources.php, nothing changes. Synced sources are plain local directories afterward — they work with a normal build, a versioned build, or a hub equally. Private repositories are supported: add 'token' => '${ACME_PAT}' to an entry (or set DOCSMITH_TOKEN / GITHUB_TOKEN), and a .env next to the manifest is loaded automatically. See Workflows for end-to-end recipes (hub from several repos, branch-based versions, CI).

Output Model

If there is no index.md in the source, Docsmith generates a landing page automatically.

GitHub Pages

Because the default output path is docs, a typical package workflow is:

  1. Keep Markdown source in md
  2. Build static site into docs
  3. Publish from docs via GitHub Pages

Development

Contributing

Contributions are welcome. Feel free to open issues and pull requests.

License

The MIT License (MIT). See LICENSE for details.


All versions of docsmith with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
league/commonmark Version ^2.7
matthiasmullie/minify Version ^1.3
mrpunyapal/git-reader Version ^0.2
phiki/phiki Version ^2.2
symfony/console Version ^7.4 || ^8.1
symfony/process Version ^7.4 || ^8.1
vlucas/phpdotenv Version ^5.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 mrpunyapal/docsmith contains the following files

Loading the files please wait ...