PHPackages                             dkdimitrov/wscapi - 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. [API Development](/categories/api)
4. /
5. dkdimitrov/wscapi

ActiveLibrary[API Development](/categories/api)

dkdimitrov/wscapi
=================

wsc api php package

1.0.1(8y ago)030MITPHPPHP &gt;=5.6.4

Since Sep 1Pushed 8y agoCompare

[ Source](https://github.com/dkdimitrov/wscapi)[ Packagist](https://packagist.org/packages/dkdimitrov/wscapi)[ Docs](https://github.com/dkdimitrov/wscapi)[ RSS](/packages/dkdimitrov-wscapi/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

WSC API PHP Package
===================

[](#wsc-api-php-package)

This is a simple package to connect the WSC API and fetch taxa information.

Installation
------------

[](#installation)

Install the package via composer: `composer require dkdimitrov/wscapi`

Simple use:
-----------

[](#simple-use)

Make an instance passing your Api key. Then fetch the taxon passing as an argument its lsid (digits only, not the whole string)

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

$wsc = new Wsc\Wsc\WscApi('yourApiKeyString');

$wsc->fetchSpecies('049542');
```

For Laravel users:
------------------

[](#for-laravel-users)

Register the ServiceProvider in `config/app.php`

```
        'providers' => [
		// [...]
                Wsc\Wsc\WscServiceProvider::class,
        ],
```

Then add your API Key to your .env file like this:

```
        WSC_API_KEY=yourApiKeyString
```

Usage
-----

[](#usage)

You can fetch family, genus or species information using one of the following methods:

```
$wsc->fetchFamily('0037');

$wsc->fetchGenus('01824');

$wsc->fetchSpecies('049542');
```

If the taxon status is SYNONYM you can fetch the valid one by calling this method with the link as an argument:

```
$species = $wsc->fetchSpecies('016759');

if($species->taxon->status == 'SYNONYM' || $species->taxon->status == 'HOMONYM_REPLACED'){
    $valid = $wsc->fetchValidTaxon($species->validTaxon->_href)
}
```

If you wish to fetch all or specific updated taxa for the given period, use the method below and pass the taxon type (optional) and starting date (optional). Valid values for type:

- family
- genus
- species

If no type is provided all types will be returned. Date should be in format 'YYYY-MM-DD'. The results from the date you provide to now will be returned. If you do not provide date the results from the last 6 months will be fetched.

```
$wsc->fetchUpdatedTaxa(null, 'YYYY-MM-DD');

$wsc->fetchUpdatedTaxa('species');

$wsc->fetchUpdatedTaxa('species', 'YYYY-MM-DD');
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.7% 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

Unknown

Total

1

Last Release

3224d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31305169?v=4)[dkdimitrov](/maintainers/dkdimitrov)[@dkdimitrov](https://github.com/dkdimitrov)

---

Top Contributors

[![drdimitrov](https://avatars.githubusercontent.com/u/12373900?v=4)](https://github.com/drdimitrov "drdimitrov (26 commits)")[![dkdimitrov](https://avatars.githubusercontent.com/u/31305169?v=4)](https://github.com/dkdimitrov "dkdimitrov (3 commits)")

### Embed Badge

![Health badge](/badges/dkdimitrov-wscapi/health.svg)

```
[![Health](https://phpackages.com/badges/dkdimitrov-wscapi/health.svg)](https://phpackages.com/packages/dkdimitrov-wscapi)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M932](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

49108.6k2](/packages/fschmtt-keycloak-rest-api-client-php)

PHPackages © 2026

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