Download the PHP package julien-boudry/php-reference without Composer

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

PhpReference

Main Author: Julien Boudry
License: say hello if you like or use this code!
Donation:bc1q3jllk3qd9fjvvuqy07tawkv7t6h7qjf55fc2gh or GitHub Sponsor Page

License Packagist

PhpReference is a powerful documentation generator for PHP projects. It analyzes your codebase using reflection and generates comprehensive Markdown documentation for your namespaces, classes, methods, properties, and constants.

Workflow

Features

Quick Start

Installation

Install PhpReference via Composer:

Recommended: Using a Configuration File

The recommended way to use PhpReference is with a configuration file. This avoids typing the same arguments repeatedly and makes your documentation setup reproducible.

Create a reference.php file at your project root:

Then simply run:

📖 Full Configuration Documentation - Learn about all available options, priority rules, and advanced usage.

Note: If you're working on the PhpReference project itself, use php bin/php-reference instead of php vendor/bin/php-reference.

Quick Start Without Configuration

For a quick one-time generation, you can use command-line arguments:

💡 Tip: While command-line arguments work well for testing, using a configuration file is recommended for regular use and CI/CD pipelines.

Command-Line Options

Option Shortcut Description Example
namespace - Namespace to analyze (optional if set in config) MyNamespace\\MyProject
--output -o Output directory --output=./docs/api
--append -a Do not clean output directory before generation --append
--api - API definition to use (HasTagApi, IsPubliclyAccessible) --api=IsPubliclyAccessible
--index-file-name - Name of the index file (without extension) --index-file-name=index
--source-url-base - Base URL for source code links --source-url-base=https://github.com/user/repo/blob/main
--config -c Path to configuration file --config=./my-config.php

💡 Remember: Command-line arguments override configuration file settings. For regular use, prefer using a configuration file and only override specific options when needed.

Common Use Cases

Development Workflow

Once you have a reference.php configuration file, your workflow becomes simple:

CI/CD Integration

Using a configuration file makes CI/CD integration straightforward:

No need to specify arguments in your workflow file - everything is configured in reference.php.

Multiple Documentation Targets

Generate different documentation sets using different config files:

Public API Control

PhpReference lets you control what gets documented:

Using @api Tags (Default)

Mark elements for documentation with the @api PHPDoc tag:

Include All Public Elements

Use --api=IsPubliclyAccessible to document all public classes, methods, and properties regardless of @api tags:

Available API Definitions

Output Structure

PhpReference generates a structured documentation hierarchy:

Requirements

Contributing

Contributions are welcome! See CONTRIBUTING.md for development setup and guidelines.

Credits

Created and maintained by Julien Boudry.

If you find this project useful, please consider:


All versions of php-reference with dependencies

PHP Build Version
Package Version
Requires haydenpierce/class-finder Version ^0.5.3
phpdocumentor/reflection-docblock Version ^6.0
latte/latte Version ^3.1
league/flysystem Version ^3.29
symfony/console Version ^8.0
laravel/prompts Version ^0.3
phpunit/php-timer Version ^8.0
nikic/php-parser Version ^5.7
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 julien-boudry/php-reference contains the following files

Loading the files please wait ...