PHPackages                             coreapi-tech/core-php - 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. coreapi-tech/core-php

ActiveLibrary[API Development](/categories/api)

coreapi-tech/core-php
=====================

Simplify your development with our scalable API

v1.0.2(3y ago)049MITPHPPHP &gt;=7.1.0

Since Mar 10Pushed 3y agoCompare

[ Source](https://github.com/coreapi-tech/core-php)[ Packagist](https://packagist.org/packages/coreapi-tech/core-php)[ RSS](/packages/coreapi-tech-core-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

README
======

[](#readme)

This is a PHP code that uses the CoreapiTools library to interact with the Coreapi API service. The Coreapi service provides various functionalities related to user identification, authentication, and validation.

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

[](#installation)

```
composer require coreapi-tech/core-php

```

Load it via Autoload

```
require_once('vendor/autoload.php');

```

Usage
-----

[](#usage)

### Authentication

[](#authentication)

First, you need to obtain an API token from the Coreapi service. This token is required for every request made to the API. You can obtain the token from the Coreapi website by registering and subscribing to the service.

After obtaining the token, you can create an instance of the Tools class by passing the token as a parameter.

```
$token = 'affkqjjnfnafnjj';
$coreapi = new Coreapi\Tools($token);

```

### User Geo-location

[](#user-geo-location)

You can use the `get_user_geo($ip)` method to obtain the geographical location of a user based on their IP address.

```
$ip = 'ip';
$geoUser = $coreapi->get_user_geo($ip);

```

The `$ip` parameter is the IP address of the user you want to get the location for. The $geoUser variable will contain an array of data related to the user's location.

If the ip is not provided, the method will attempt to get the IP address of the user making the request.

### Email Verification

[](#email-verification)

You can use the `get_email_info('email')` method to verify if an email address is valid and retrieve additional information about it.

```
$emailInfo = $coreapi->get_email_info('email');

```

The email parameter is the email address you want to verify. The $emailInfo variable will contain an array of data related to the email, including its validity status.

### Phone Verification

[](#phone-verification)

You can use the `get_phone_info('phone')` method to verify if a phone number is valid and retrieve additional information about it.

```
$phoneInfo = $coreapi->get_phone_info('phone');

```

The phone parameter is the phone number you want to verify. The $phoneInfo variable will contain an array of data related to the phone number, including its validity status.

### SMS Authentication

[](#sms-authentication)

You can use the send\_sms\_auth('phone', 'code', 'en') method to send an SMS authentication code to a phone number.

```
$smsAuth = $coreapi->send_sms_auth('phone', 'code', 'en');

```

- Supported languages include English (en), French (fr), Spanish (es), and Portuguese (pt).
- Code length is limited to 6 characters.

The phone parameter is the phone number you want to send the authentication code to, the code parameter is the authentication code you want to send, and the en parameter is the language code for the message.

The $smsAuth variable will contain a response object with information about the status of the SMS authentication request.

Conclusion
----------

[](#conclusion)

This PHP code demonstrates how to use the coreapi library to interact with the coreapi service. By following the steps outlined in this README, you should be able to use the Coreapi service to verify user identities, authenticate users, and perform other related tasks.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

1162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8449a4ebfdf544be28c7f0e29f2f3d65a755d84788c4498fba3707e89243a87?d=identicon)[ViktorUser](/maintainers/ViktorUser)

---

Top Contributors

[![ViktorUser](https://avatars.githubusercontent.com/u/79920336?v=4)](https://github.com/ViktorUser "ViktorUser (6 commits)")

### Embed Badge

![Health badge](/badges/coreapi-tech-core-php/health.svg)

```
[![Health](https://phpackages.com/badges/coreapi-tech-core-php/health.svg)](https://phpackages.com/packages/coreapi-tech-core-php)
```

###  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)
