PHPackages                             jozefcipa/cp.sk-api - 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. jozefcipa/cp.sk-api

ActiveProject[API Development](/categories/api)

jozefcipa/cp.sk-api
===================

Api to fetch 3 nearest departures from cp.sk

08PHP

Since Oct 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/JozefCipa/php-cpsk-api)[ Packagist](https://packagist.org/packages/jozefcipa/cp.sk-api)[ RSS](/packages/jozefcipa-cpsk-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-cpsk-api
============

[](#php-cpsk-api)

Api to fetch 3 nearest departures from cp.sk

Inspired by official [python version](https://github.com/Adman/python-cpsk-api).

Usage
=====

[](#usage)

```
use JozefCipa\CP\CpSK;
use JozefCipa\CP\CpException;

$cpsk = new CpSK;

$departures = $cpsk->from('Pod Táborom')
	    		->to('Čierny most')
	    		->useVehicles(CpSK::MHD)
	    		->inCity('Prešov')
	    		->at('12:00 13.03.2017')
	    		->find();

```

**Note:** Stops names must match exact name available on cp.sk

Credits: [Official creator](https://github.com/Adman/)

Beware that by using this you might be violating cp.sk ToS

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b6c6d7e1e76d3212d952d1a1ce2885737e1dfde9398fa64bf27ca1d55d07fe1?d=identicon)[JozefCipa](/maintainers/JozefCipa)

---

Top Contributors

[![jozefcipa](https://avatars.githubusercontent.com/u/11503453?v=4)](https://github.com/jozefcipa "jozefcipa (12 commits)")

### Embed Badge

![Health badge](/badges/jozefcipa-cpsk-api/health.svg)

```
[![Health](https://phpackages.com/badges/jozefcipa-cpsk-api/health.svg)](https://phpackages.com/packages/jozefcipa-cpsk-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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