Download the PHP package ichthus-soft/bible_ref without Composer

On this page you can find all versions of the php package ichthus-soft/bible_ref. 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_ref

Bible_ref

About the project

Bible_ref is a composer package that transforms real text references into PHP an PHP array for better handling in MySQL queries or stuff like that.

Installation

It is recommended that you install this package through Composer. Create a file name in your working directory and paste the following in it:

And after that run .

Or if you already have an file in your project, add the above code and run .

After this, you can use the package like this:

Manual installation

Clone this repository and include src/BibleRef/Utils.php and src/BibleRef/Reference.php in your PHP file!

Query syntax

So, to summarize:

Version 2 (current)

Version 2 is the new recommended version to be used. The returned output is sligtly different than the old version.

Warning: this version gives the output in the order you request it (the old version gave you the verses in ascending order. If you request first the chapter 2 verse 4 and after verse 2, the first element in the array will be verse 4 because it was first requested!

Example of the output structure:

Example:

Real life usage:

This package was made for the ichthus-soft/bible-api package, so let me give you an example of how we use this package there (contains parts in Romanian). You can also see this code directly on the GitHub repository by clicking here!

Version 1 (old)

This version should not be used.

Be careful!

If you add multiple chapters, the return value will be default empty and the return value will be an array of chapters with the verses associated.

In order to get the verses in the return value you have to init the Reference class with the second parameter set to :

And basically the key of the returned array will be a clone of the key (an associative array with chapterNumber => array() of verses!

Examples

More advanced example

returns this


All versions of bible_ref with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 ichthus-soft/bible_ref contains the following files

Loading the files please wait ....