Download the PHP package malantonio/dewey without Composer

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

Dewey Decimal Classification tools

Build Status

a collection of tools to work w/ Dewey Decimal call numbers

some terminology explanation

To the best of my (admittedly lacking) knowledge, there is no set terminology to differentiate the whole numbers from the decimals in a Dewey Decimal System call number. Internally, the following terms are used to refer to the different parts:

For the call number DVD 741.4372 A123b c.2 v.3 2004:

term     | value

-------------|------ prestamp | DVD major | 741 minor | 4372 cutter | A123b additional | c.2 v.3 2004 call number| 741.4372

What's also a bit confusing is the differentiation between a call number and a CallNumber object. Unless specifically referencing the CallNumber object's $callNumber field, the camel-cased CallNumber refers to the object and lower-cased call number refers to the major/minor combination.

Please add an issue if you've got some suggestions re: clearing the code up!

usage

The Dewey class has a few static methods for general use:

Dewey::calculateRange($rangeString)

Calculate the range of DDS call numbers using an * to specify where the range takes place. Returns a tuple array of [$min, $max]

example

range string returned array
7** ["700", "800"]
74* ["740", "750"]
741.* ["741", "742"]
741.4* ["741.4", "741.5"]

Dewey::compare($input, $comparison, $operator[, $includePrestamp = false])

Compare $input to $comparison using $operator. Accepts: <, >, <=, >=, ==, ===. $includePrestamp will involve the prestamp in the comparison. Returns a boolean.

example

Dewey::parseCallNumber($callNumberString)

Builds a Dewey\CallNumber object from the provided string.

example

Dewey\CallNumber

A CallNumber object is a representation of a DDS call number.

An object can be constructed by using Dewey::parseCallNumber or by instantiating a new Dewey\CallNumber with a DDS call number string as a parameter (which uses the former under the hood anyway).

The following methods are available on an instantiated object:

Dewey\CallNumber::compare($comparisonAgainst, $operator)

Compare the instantiated object against another DDS call number (or Dewey\CallNumber object). Returns a bool. The following wrappers are provided too:

Dewey\CallNumber::inRange($range[, $lessThanEqualTo = true])

Whether the instantiated object falls within the range provided as a range string (see Dewey::calculateRange for examples) or a min/max tuple. If $lessThanEqualTo is false, does not include the $max value as true.

license

MIT


All versions of dewey with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.13
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 malantonio/dewey contains the following files

Loading the files please wait ....