定制 nieknijland/marktplaats-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nieknijland/marktplaats-php

最新稳定版本:v0.5.0

Composer 安装命令:

composer require nieknijland/marktplaats-php

包简介

PHP client for fetching Marktplaats search listings programmatically

README 文档

README

Latest Version on Packagist Tests Total Downloads

PHP client for fetching Marktplaats listings programmatically. Returns strongly typed immutable DTOs for search and listing detail pages.

Installation

composer require nieknijland/marktplaats-php

Quick Start

use NiekNijland\Marktplaats\Client;
use NiekNijland\Marktplaats\Data\SearchQuery;

$client = new Client();

$result = $client->getSearch(new SearchQuery(
    query: 'bureau',
));

foreach ($result->listings as $listing) {
    echo $listing->title . ' - ' . $listing->priceInfo?->priceCents . ' cents' . PHP_EOL;
}

// Fetch a detail page
$detail = $client->getListing($listing->vipUrl);
echo $detail->description . PHP_EOL;
echo $detail->stats?->viewCount . ' views' . PHP_EOL;

Documentation

  • Usage — Search, filters, listing details, pagination, caching, custom HTTP client
  • Testing — FakeClient, factories, assertions
  • Caveats — Keyword-stuffed titles, lease prices

Development

composer test              # Unit tests
composer test-integration  # Integration tests (live API)
composer test-all          # Both suites
composer format            # Laravel Pint
composer analyse           # PHPStan level 8
composer codestyle         # rector + pint + analyse

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固