mindpowered/englishauction

Online auctions with ascending price and time limit

0.0.64 2021-02-03 07:41 UTC

README

Online auctions with ascending price and time limit

Build Status

Contents

Source Code and Documentation

About

An English auction is the most common form of auction. When an auction opens, the price starts low and increases as buyers bid for the item. Live auctions usually end when there is no new highest bid for a period of time. For online auctions, an end time is usually set. To prevent items selling for a loss, sometimes the seller will place a reserve. A reserve is the least amount to sell the item for, although the auction may start at a lower price. Another common feature of online auctions is the ability to pay a set price to win and end the auction.

This package aims to provide functionality of online English auctions.

Requirements

  • php >= 7
  • php mbstring extension
  • php xml extension

Third-party dependencies may have additional requirements.

Installation

You can get englishauction using Composer. Composer manages dependencies for packages from Packagist and you can get it here: https://getcomposer.org/ .

Create a composer.json file in the top-most directory of your project and add mindpowered/englishauction to the requirements:

{
        "require": {
                "mindpowered/englishauction" : "*"
        }
}

Now you can run the command to update composer: composer update. In order for composer to install the package dependencies you will need an archive manager such as zip installed. Composer requires use of the commands zip and unzip.

Usage

require __DIR__ . '/vendor/autoload.php';

use \mindpowered\englishauction\EnglishAuction;

$ea = new EnglishAuction();
$ea->GetOpenAuctions(0, 10, "start", true);

Support

We are here to support using this package. If it doesn't do what you're looking for, isn't working, or you just need help, please Contact us.

There is also a public Issue Tracker available for this package.

Licensing

This package is released under the MIT License.