Download the PHP package devdot/bible-text-provider without Composer

On this page you can find all versions of the php package devdot/bible-text-provider. 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 bible-text-provider

Bible Data Provider

Provide texts from the bible by reference, loaded from local files.

This library works well to provide the text for verse references that were found using stevenbuehner/bible-verse-bundle.

Installation

Install the library with composer:

Then provide your own data files. Because of copyrights, this package does not deliver actual bible texts. See further at Building your own data. If you need a hint on how to generate your own bible texts, you may contact me.

Basic Usage

You may quickly load the verses for a reference (as provided by stevenbuehner/bible-verse-bundle):

Building your own data

As stated above, I cannot provide actual bible texts in this package for legal reasons. You may build your own bible data from public sources and then provide it to your PHP application using this package.

An example of the data format can be seen in tests/data.

Root file (bibles.php)

This file is supplied to BiblesLoader. It is only loaded when any bible is accessed.

See tests/data/test-bibles.php for a working example.

Books list (books.php)

This file is only loaded when a book of a given bible is accessed. Its relative location must be defined in bibles.php.

See tests/data/tes/books.php for a working example.

To find out about book IDs you may look at the BookIdResolver Helper. You may also introduce your own book ID system.

Book file

These files are only loaded when the corresponding book of a given bible is accessed. Its relative location must be defined in books.php.

Your bible texts may have multiple segments. In that case, the verse-text is not a string but an array of strings (array<string>):

By default, the segments are merged into a single verse string. You may access these segments individually through the arguments of Verse->getText().

See tests/data/tes/0-gen.php for a working example.

License

Bible Text Provider is licensed under the MIT License. See the LICENSE file for details.


All versions of bible-text-provider with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 devdot/bible-text-provider contains the following files

Loading the files please wait ....