PHPackages                             konradbaron/redline13 - 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. konradbaron/redline13

ActivePackage[API Development](/categories/api)

konradbaron/redline13
=====================

PHP package for the ZipCodeAPI by RedLine13

1367PHP

Since Aug 1Pushed 7y ago3 watchersCompare

[ Source](https://github.com/konradbaron/php-zipcode-api-redline13)[ Packagist](https://packagist.org/packages/konradbaron/redline13)[ RSS](/packages/konradbaron-redline13/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-ZipCode-API-RedLine13
=========================

[](#php-zipcode-api-redline13)

PHP-ZipCode-API-RedLine13 is a PHP class for [ZipCodeApi.com by RedLine13](http://www.zipcodeapi.com). You must first register an account to receive an API key. The API allows a free subscription, but limits the API usage to 250 requests per hour for that level.

The API currently returns your data in three formats; JSON, CSV and XML. This class has set JSON as the default return format.

Requirements
------------

[](#requirements)

This library requires the use of Composer.

```
composer require konradbaron/redline13:dev-master

```

Example Usage
-------------

[](#example-usage)

### Instantiate the class

[](#instantiate-the-class)

```
  use KonradBaron\RedLine13\RedLine13;
  $zipCode = new RedLine13(YOUR_API_KEY);
```

### Distance between two zip codes

[](#distance-between-two-zip-codes)

```
  echo $zipCode->getZipcodeDistance(ZIP_CODE, ZIP_CODE2);
```

### Find all zip codes within a given radius of a zip code

[](#find-all-zip-codes-within-a-given-radius-of-a-zip-code)

```
  echo $zipCode->getZipcodesByRadius(ZIP_CODE,RADIUS_DISTANCE);
```

### Find city, state, latitude, longitude, and time zone information for a zip code

[](#find-city-state-latitude-longitude-and-time-zone-information-for-a-zip-code)

```
  echo $zipCode->getLocationInfoByZipcode(ZIP_CODE);
```

### Find out possible zip codes for a city

[](#find-out-possible-zip-codes-for-a-city)

```
  echo $zipCode->getZipcodesByLocation(CITY, STATE);
```

### Find out possible zip codes for a state

[](#find-out-possible-zip-codes-for-a-state)

```
  echo $zipCode->getZipcodesByState(STATE);
```

### Find distance between one zip code and multiple other zip codes

[](#find-distance-between-one-zip-code-and-multiple-other-zip-codes)

```
  echo $zipCode->getMultipleZipcodesDistance(ZIP_CODE,OTHER_ZIP_CODES);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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/006d4f795e93bf39787fff296b11c5e3c6ec129517eab126b458908c93cdbcce?d=identicon)[konradbaron](/maintainers/konradbaron)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/konradbaron-redline13/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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