mitmelon/pangea

Incorporate security into your PHP Applications using the Pangea API services.

1.0.0 2024-02-10 11:30 UTC

This package is auto-updated.

Last update: 2024-10-10 13:03:42 UTC


README

Pangea PHP Client

Join Telegram

Incorporate security into your PHP Applications using the Pangea API services

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors License Badge Total Downloads

If you love this project and wish to assist me to keep working on it. Please follow this link https://flutterwave.com/donate/ajcv56i67fan to donate. If you find it hard donating please contact me at manomitehq@gmail.com for more payment methods. Please no amount is too small.

Todo Features:

  • Add vault [Provides secure storage of secrets, cryptographic keys, and Pangea API Tokens tokens as Vault items]
  • Add IP Intel [Malicious behavior check on IP]
  • Add Domain Intel [Allows you to retrieve intelligence about domain names]
  • Add URL Intel [Malicious behavior check on URL]
  • Add User Intel [Discover if information was disclosed in a breach]
  • Add File Intel [Enables you to submit a file's hash to retrieve its reputation]
  • Add File Scan [Enables you to upload files to be scanned for malicious content]
  • Add audit log [A managed audit log store that offers transparent, unalterable, and cryptographically]
  • Add redact [Remove sensitive information from free-from text and structured data]
  • Add Embargo [Determine if there is a trade embargo against the country of origin for an IP address]
  • Add AuthN [A fully managed service to deliver secure user registration and authentication flows, integrated into your application]

Install:

Use composer to install

composer require mitmelon/pangea

Usage :

To use this project, create an account and plug your credentials into the options below. Account creation is free.

require_once __DIR__."/vendor/autoload.php";

// Initialize library class
$pangea = new Pangea($token, $service, $csp, $region);

//Registers all services or select the one you need
$pangea->registerService(
    $pangea->available_service() // this registers all services
    //or register like this 'vault', 'ip-intel' for single or more services
    //You can printout $pangea->available_service() on a separate line to see all the supported services
); 

print_r($pangea->generateKey('symmetric_key', 'AES-GCM-256'));

Documentation

Please see Pangea Docs for more informations.

You can also check the Service Docs to see the services and methods implemented.

Changelog

All notable changes to this project will be documented here.

License

Released under the MIT license.

@Pangea