Download the PHP package tommander/phpsphinx without Composer

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

PhpSphinx

PHP QA

A simple PHP script for use in command line. This script takes an XML file generated by phpDocumentor and generates a Sphinx-ready API documentation in the output folder.

Prerequisites

  1. git
  2. composer 2.2+
  3. Sphinx
    1. Extension sphinx_rtd_theme
    2. Domain PHP
  4. phpDocumentor
  5. PHP 7.4+

Note: if your PHP version is different from 8.2, you might need to run composer update.

Composer Installation

First require the package as a dev dependency.

Manual Installation

First clone the repo and install dependencies.

Use In Existing Projects

First, check that you have all the prerequisites.

Then you can create a folder for the documentation. In the example, it is docs. Create two subfolders, source and build.

In the docs/source subfolder, create a folder named api and a file named conf.py e.g. with this content:

Then you can create .rst files and other subfolders in the source directory as needed. That will be the static part of your documentation. Just don't create anything in the folder api; it will contain the automatically generated docs.

Next, create a file named Makefile in the root of your project e.g. with this content:

Now you are ready to generate the documentation.

And if all went well, you should have your beautiful documentation in docs/build.

This flow is just an example; there is plenty of room for adjustment of this flow to your needs.

Quality Assurance

It is recommended to run QA check before pushing anything to the repo. For branches "main" and "devel", this check runs automatically on a push/PR anyway.

PHP_CodeSniffer with coding standards PSR-12 and PHP-Compatibility.

psalm for static analysis.

phpunit for unit testing.

Issues

Please track in GitHub Issues.

Pull Requests

Contributing.

Documentation

All important information is in the main file src/StructureToRst.php.

Executable bin/phpsphinx is a PHP file that should be called via command-line. It just takes two options (-i for input XML file path and -o for output API docs path) and then calls the code in the main file.

Simple unit test tests/StructureToRstTest.php ensures to a certain degree that, for a given XML structure, an expected output is generated.

License

MIT License.


All versions of phpsphinx with dependencies

PHP Build Version
Package Version
Requires composer-runtime-api Version ^2.2
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 tommander/phpsphinx contains the following files

Loading the files please wait ...