PHPackages                             ner0tic/foursquare-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. ner0tic/foursquare-api

ActiveLibrary[API Development](/categories/api)

ner0tic/foursquare-api
======================

Foursquare API v2 client

2.0.0(13y ago)159MITPHPPHP &gt;=5.3.2

Since Sep 16Pushed 13y ago1 watchersCompare

[ Source](https://github.com/ner0tic/php-foursquare-api)[ Packagist](https://packagist.org/packages/ner0tic/foursquare-api)[ Docs](https://github.com/ner0tic/php-foursquare-api)[ RSS](/packages/ner0tic-foursquare-api/feed)WikiDiscussions master Synced 2mo ago

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

php-foursquare-api
==================

[](#php-foursquare-api)

ORM agnostic php library to access foursquare api version 2.0

Installation
============

[](#installation)

Add to composer

```
    "require": {
        "ner0tic/php-api-core":     "2.*",
        "ner0tic/foursquare-api":   "2.*"
        // ...
```

Usage
=====

[](#usage)

```
$fs = new \Foursquare\Client();

$checkins = $fs->api('checkins')->recent(); // recent($id,max=10)
foreach($checkins as $checkin) {
  echo $checkin; // $checkin->timestamp.' '.$checkin->getVenue()->getName()
}
```

Api's to choose from:

- users
- checkins
- venues
- venue groups
- tips
- lists
- updates
- photos
- settings
- specials
- campaigns
- events
- pages
- page updates
- multi

To set the auth settings manually

```
$fs = new \Foursquare\Client();

$fs->setAuthClientId($id);
$fs->setAuthHttpPassword($pass);
$fs->setAuthUrlToken($token);
$fs->setAuthHttpToken($token);
```

If you have api keys to use, mash them into a [pem](http://www.fileinfo.com/extension/pem) file and set the `certificate` option to the path of the file.

```
$client->setOption('certificate', $pem_file);
```

Make a query

```
$result = $api->get($endpoint, $parameters, $request_options);
```

ToDo
====

[](#todo)

Laundry List

- DI to access config.yml for variables

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~116 days

Total

3

Last Release

4753d ago

Major Versions

v0.0.1 → 2.0.02013-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/72d47e1c62e399a88deebdfa085592ec84221a0fb8e903bb6cd67c39dc9c395f?d=identicon)[ner0tic](/maintainers/ner0tic)

---

Top Contributors

[![ner0tic](https://avatars.githubusercontent.com/u/161227?v=4)](https://github.com/ner0tic "ner0tic (43 commits)")

---

Tags

apifoursquarecheckinvenue

### Embed Badge

![Health badge](/badges/ner0tic-foursquare-api/health.svg)

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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