Download the PHP package coreapi-tech/core-php without Composer

On this page you can find all versions of the php package coreapi-tech/core-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package core-php

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

Load it via Autoload

Usage

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.

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.

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

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

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

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

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

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

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

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.


All versions of core-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package coreapi-tech/core-php contains the following files

Loading the files please wait ....