https://github.com/club-1/sphinx-inventory-parser

Parse Sphinx documentation's object.inv inventory file format into an indexed SphinxInventory object with PHP.

https://github.com/club-1/sphinx-inventory-parser

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.9%) to scientific vocabulary

Keywords

intersphinx library php php-library sphinx sphinx-doc
Last synced: 5 months ago · JSON representation

Repository

Parse Sphinx documentation's object.inv inventory file format into an indexed SphinxInventory object with PHP.

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
intersphinx library php php-library sphinx sphinx-doc
Created almost 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.rst

PHP Sphinx Inventory Parser
===========================

|License LGPL-2.1-or-later| |PHP versions tested| |build status| |coverage report| |docs status|

.. Introduction .. ............................................................

Sphinx Inventory Parser is PHP library
to parse `Sphinx documentation `_'s object inventory file format
as used by `intersphinx `_.
It is loosely inspired from `sphobjinv `_,
whose documentation have also been very useful
by describing the `Sphinx objects.inv v2 Syntax `_.

Requirements
------------

The only requirement is PHP >= 7.4 with `Zlib extension `_
(usually included).

Installation
------------

This library is available on `packagist `_
and can be installed via `composer `_:

.. code:: sh

   composer require club-1/sphinx-inventory-parser

.. Example .. .................................................................

Simple example
--------------

The simplest way to use it is with |SphinxInventoryParser::parseFromDoc()|
that creates a |SphinxInventory| object directly from an online documentation,
based on its URL (and an optional inventory path).

.. code:: php

   use Club1\SphinxInventoryParser\SphinxInventoryParser;

   $inventory = SphinxInventoryParser::parseFromDoc('https://club1.fr/docs/fr/');


.. Documentation .. ...........................................................

For more examples on how to use this library, see `the "Usage" section`_
of the documentation.

.. _the "Usage" section: https://club-1.github.io/sphinx-inventory-parser/usage.html

Documentation
-------------

See the full `documentation `_
for more information, including the API reference.

Development
-----------

.. Development .. .............................................................

Development requirements
~~~~~~~~~~~~~~~~~~~~~~~~

-  **make**: to manage build scripts
-  **composer**: to install PHP development dependencies
-  **pigz**: (Optional) to build tests data, will fallback to a PHP script if not present

On Debian and derivatives::

   sudo apt install make composer pigz

Build scripts
~~~~~~~~~~~~~

.. code:: sh

   make        # Fetch development dependencies and build tests data.
   make check  # Run tests.
   make fuzz   # Run fuzzer.
   make clean  # Clean all downloaded and generated files.

.. Epilog .. ..................................................................

.. |SphinxInventoryParser::parseFromDoc()| replace:: ``SphinxInventoryParser::parseFromDoc()``
.. |SphinxInventory| replace:: ``SphinxInventory``

.. |License LGPL-2.1-or-later| image:: https://img.shields.io/badge/license-LGPL--2.1--or--later-blue.svg
   :target: LICENSE
.. |PHP versions tested| image:: https://img.shields.io/badge/php-7.4%20%7C%208.0%20%7C%208.1%20%7C%208.2%20%7C%208.3%20%7C%208.4-blue.svg
.. |build status| image:: https://img.shields.io/github/actions/workflow/status/club-1/sphinx-inventory-parser/build.yml.svg
   :target: https://github.com/club-1/sphinx-inventory-parser/actions/workflows/build.yml?query=branch%3Amain
.. |coverage report| image:: https://img.shields.io/codecov/c/gh/club-1/sphinx-inventory-parser
   :target: https://app.codecov.io/gh/club-1/sphinx-inventory-parser
.. |docs status| image:: https://img.shields.io/github/actions/workflow/status/club-1/sphinx-inventory-parser/docs.yml.svg?label=docs
   :target: https://club-1.github.io/sphinx-inventory-parser/

Owner

  • Name: CLUB1
  • Login: club-1
  • Kind: organization

GitHub Events

Total
  • Watch event: 1
  • Delete event: 4
  • Issue comment event: 6
  • Push event: 4
  • Pull request event: 6
  • Create event: 4
Last Year
  • Watch event: 1
  • Delete event: 4
  • Issue comment event: 6
  • Push event: 4
  • Pull request event: 6
  • Create event: 4

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 25
  • Average time to close issues: 6 days
  • Average time to close pull requests: 5 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.08
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 7
Past Year
  • Issues: 0
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 19 days
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 1.83
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 4
Top Authors
Issue Authors
  • n-peugnet (1)
Pull Request Authors
  • n-peugnet (29)
  • dependabot[bot] (11)
Top Labels
Issue Labels
Pull Request Labels
dependencies (11) github_actions (2)

Packages

  • Total packages: 1
  • Total downloads:
    • packagist 242 total
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 9
  • Total maintainers: 1
packagist.org: club-1/sphinx-inventory-parser

Parse Sphinx documentation's object.inv inventory file format into an indexed SphinxInventory object.

  • Versions: 9
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 242 Total
Rankings
Dependent packages count: 9.7%
Dependent repos count: 22.0%
Average: 23.6%
Stargazers count: 25.0%
Forks count: 27.1%
Downloads: 34.3%
Maintainers (1)
Funding
Last synced: 6 months ago

Dependencies

composer.json packagist
  • doxphp/doxphp dev-master development
  • phpstan/phpstan ^1.10 development
  • phpunit/phpunit ^9 development
  • ext-zlib *
  • php >=7.3
docs/requirements.txt pypi
  • sphinx *
  • sphinxcontrib-phpdomain *