PHPackages                             notfoundsam/yahoo-auction - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. notfoundsam/yahoo-auction

ActiveLibrary

notfoundsam/yahoo-auction
=========================

Yahoo auction bidder

1.3.1(4y ago)162018[1 PRs](https://github.com/notfoundsam/yahoo-auction/pulls)MITHTMLPHP &gt;=5.6.0

Since Mar 12Pushed 1y ago5 watchersCompare

[ Source](https://github.com/notfoundsam/yahoo-auction)[ Packagist](https://packagist.org/packages/notfoundsam/yahoo-auction)[ Docs](https://github.com/notfoundsam/yahoo-auction)[ RSS](/packages/notfoundsam-yahoo-auction/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (12)Used By (0)

Yahoo Auction Http library
==========================

[](#yahoo-auction-http-library)

### Description

[](#description)

This library will help you to work with Yahoo auction. It makes requests to Yahoo auction like a normal browser. To use this library you must specify your username and password from Yahoo to login. In order not to make a login every time, after the first login, save your cookies so that the following requests will be in the same session. You can view your won lots and bidding lots. To get information about the lot or bid on the lot, you will need an application key.

### Requirements

[](#requirements)

- php &gt;= 5.4
- php-curl
- php-mbstring
- php-xml

### Installation

[](#installation)

```
composer require notfoundsam/yahoo-auction

```

### Examples

[](#examples)

Specify your credentials and create a new instance of Browser object.

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

use Yahooauc\Browser as Browser;

$userName = "your_yahoo_user";
$userPass = "your_yahoo_pass";

/* Get saved cookie */
$cookie = file_get_contents('cookie.cache');
$cookieJar = $cookie !== false ? unserialize($cookie) : [];

$browser = new Browser($userName, $userPass, null, $cookieJar);

```

If you don't have cookies yet try to login into Yahoo. It throws `LoginException` or `CaptchaException` if something wrong.

```
/* Try to login into Yahoo */
var_dump($browser->login());

```

If you already have cookies try to check it.

```
/* Check is logged in */
var_dump($browser->checkLogin());

```

Use the next methods to get information about your auctions or bid on the lot.

```
/* Get information about the lot */
var_dump($browser->getAuctionInfoAsXml("auction_lot_id"));

/* Get list of lots from the first bidding page */
var_dump($browser->getBiddingLots(1));

/* Get array of auction id from the first won page */
var_dump($browser->getWonIds(1));

/* Bid on the lot. The second argument is price in yen */
var_dump($browser->bid("auction_lot_id", 100));

```

In the end save your browser cookies to use it next time.

```
$cookieJar = $browser->getCookie();
$cookie = serialize($cookieJar);
file_put_contents('cookie.cache', $cookie);

```

### Debug

[](#debug)

Since v1.1.0 you can use the debugging mode to test your application locally. Export `YAHOO_AUC_ENV` to your environment. Set it to `production` to use on production or other to use the debugging mode.

```
export YAHOO_AUC_ENV=local

```

You can also enable or disable the debugging mode with the following method.
Pass the second argument with the path to the folder with your test files.

```
$browser->debug($debug = true);
$browser->debug($debug = true, $testPath = 'your_folder_with_test_pages');

```

### How to use the debugging mode

[](#how-to-use-the-debugging-mode)

Replace `test_user` with something else to throw `LoginException`. It means the login failed.

```
$userName = "not_test_user";
$userPass = "secret_password";

$browser = new Browser($userName, $userPass, null, []);
$browser->debug($debug = true);

```

Pass the following id `n000000000` to throw `PageNotfoundException`. It means the auction not found.

```
$userName = "test_user";
$userPass = "secret_password";

$browser = new Browser($userName, $userPass, null, []);
$browser->debug($debug = true);
$browser->getAuctionInfoAsXml("n000000000");

```

Get an array of fake data from the first bidding page.

```
$userName = "test_user";
$userPass = "secret_password";

$browser = new Browser($userName, $userPass, null, []);
$browser->debug($debug = true);
$browser->getBiddingLots(1);

```

Get an array of fake IDs from the first won page.

```
$userName = "test_user";
$userPass = "secret_password";

$browser = new Browser($userName, $userPass, null, []);
$browser->debug($debug = true);
$browser->getWonIds(1);

```

Bid on the following lot `e000000000` to throw `AuctionEndedException`. This auction has already ended.
Bid on the following lot `x000000000` with price under `220` to throw `BrowserException`. It means your price is lower than the current price.
Bid on the following lot `x000000000` with price between `220` and `999` to throw `RebidException`. It means the price of the lot has rose, and the bid failed.
Bid on the following lot `x000000000` with price more than `999` for a successful bid.

```
$userName = "test_user";
$userPass = "secret_password";

$browser = new Browser($userName, $userPass, null, []);
$browser->debug($debug = true);
$browser->bid("e000000000", 1000); // Has already ended
$browser->bid("x000000000", 100);  // Not enough
$browser->bid("x000000000", 500);  // Rebid page, bid failed
$browser->bid("x000000000", 1000); // Success

```

About v1.3.x
------------

[](#about-v13x)

### Features

[](#features)

- Added xdebug to the docker container.

### Updates

[](#updates)

- Yahoo auction API was removed because Yahoo fully closed their API.
- If the page or lot not found it will throw `PageNotfoundException`.
- Check login with new request (Sometimes after login Yahoo shows different page).
- Remove unnecessary request options in `Browser` constructor.

### Fixes

[](#fixes)

- The method `getAuctionImgsUrl` returned empty array.

### Notes

[](#notes)

- Field `$appId` don't need anymore, pass null instead to the `Browser` constructor.
- Method `$browser->getAuctionInfoAsXml("...")` returns shorted version of API result. Currently, available fields: `AuctionID`, `AuctionItemUrl`, `Title`, `Seller->Id`, `Img`, `Price`, `TaxinPrice`, `StartTime`, `EndTime`, `Status`.

### Migration from v1.2.x

[](#migration-from-v12x)

- Check available fields for `$browser->getAuctionInfoAsXml("...")` in Notes.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~182 days

Recently: every ~97 days

Total

10

Last Release

1705d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.2.2PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5eb8801cbe7f86db04cd34c429176d703b96e0db17a66a941986e0f577259572?d=identicon)[notfoundsam](/maintainers/notfoundsam)

---

Top Contributors

[![notfoundsam](https://avatars.githubusercontent.com/u/11958064?v=4)](https://github.com/notfoundsam "notfoundsam (49 commits)")

---

Tags

auctionbiddingphpyahooyahoo-auctionyahooauction

### Embed Badge

![Health badge](/badges/notfoundsam-yahoo-auction/health.svg)

```
[![Health](https://phpackages.com/badges/notfoundsam-yahoo-auction/health.svg)](https://phpackages.com/packages/notfoundsam-yahoo-auction)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[scheb/yahoo-finance-api

PHP library for accessing Yahoo Finance data

318204.8k5](/packages/scheb-yahoo-finance-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
