Download the PHP package arvinajiftechnology/laradocs-versioning without Composer

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

Laradocs Versioning

Multi-version documentation support for petebishwhip/laradocs.

This package adds version-aware routing, navigation, and document resolution on top of the base Laradocs documentation system. It allows you to serve multiple versions of your documentation (e.g. V1, V2) from a single Laravel application, with isolated navigation and content per version.

Requirements

Dependency Version
PHP ^8.3
illuminate/contracts ^13.0
illuminate/support ^13.0
petebishwhip/laradocs 0.1.4
symfony/finder ^7.0 or ^8.0

Installation

The service provider is auto-discovered by Laravel. No manual registration is needed.

Documentation Directory Structure

Place your versioned documentation in the project's docs/ directory (configurable). Each version is a subdirectory:

URLs

The package registers the following canonical URL patterns under the configured prefix (default: /docs):

URL Behavior
/docs 301 redirect to /docs/{default}
/docs/v1 Render the landing page (index) for V1
/docs/v1/{slug} Render a specific document within V1
/docs/v2 Render the landing page (index) for V2
/docs/v2/{slug} Render a specific document within V2

If a document slug does not exist in the requested version, the user is redirected to that version's root page (302).

Configuration

Publish the configuration file:

This creates config/laradocs-versioning.php with the following keys:

route.prefix

The URL segment under which documentation is served.

docs.path

Absolute path to the root directory containing version folders.

versioning.default

The fallback version slug when none is detected in the URL. Used when /docs is accessed directly.

versioning.available

An explicit list of versions. When non-empty, this overrides filesystem discovery. Each entry needs at least a slug and label. Leave empty to auto-discover from the docs directory.

Environment Variables

Variable Config Key Default
LARADOCS_VERSIONING_ROUTE_PREFIX route.prefix docs
LARADOCS_VERSIONING_PATH docs.path base_path('docs')
LARADOCS_VERSIONING_DEFAULT versioning.default v1

Integration Behavior

View Namespace

The package loads its Blade views under the laradocs-versioning:: namespace. This is separate from the upstream petebishwhip/laradocs views to prevent namespace collisions.

To customize a view, publish it:

Note: View publishing is not yet implemented. Views are loaded directly from the package's resources/views directory.

Route Integration

The package registers routes under the laradocs. route name prefix. These routes intentionally override the upstream Laradocs routes (laradocs.index and laradocs.show) so that version-aware routing takes precedence.

Routes are registered after all service providers have booted to ensure the override order is correct.

Service Bindings

The package registers the following singletons in the service container:

Assets

CSS and JavaScript assets are served automatically by the upstream petebishwhip/laradocs package. No additional setup is required.

If you need to host assets from the public/ directory (e.g. for static hosting or CDN), you can publish them:

This copies the assets to public/vendor/laradocs/. This step is optional — the documentation UI works without it.

Database Requirement

The consumer Laravel application must have a working database and session configuration. If you are using SQLite (the Laravel default), ensure the database file exists and migrations have been run:

Version Isolation

Navigation, search results, and document resolution are fully version-aware:

Development / Testing

From the package directory:

The test suite uses Orchestra Testbench to run Laravel package tests in isolation.

License

MIT


All versions of laradocs-versioning with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^13.0
illuminate/support Version ^13.0
petebishwhip/laradocs Version 0.1.4
symfony/finder Version ^7.0|^8.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 arvinajiftechnology/laradocs-versioning contains the following files

Loading the files please wait ...