Skip to content

Commit

Permalink
Merge pull request #8 from smileidentity/feature/enforce_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ArlonTM authored Jun 22, 2022
2 parents 6ebe3e9 + 1a1f1fb commit f3b4b59
Show file tree
Hide file tree
Showing 14 changed files with 455 additions and 551 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.gitattributes export-ignore
.gitignore export-ignore
.github export-ignore
.travis.yml export-ignore
tests/ export-ignore
phpunit.xml export-ignore
example_core.php export-ignore
43 changes: 35 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
# smile-identity-core-php
# Smile Identity PHP Server Side

The Official Smile Identity PHP library
Smile Identity provides the best solutions for real time Digital KYC, identity verification, user onboarding, and user authentication across Africa. Our server side libraries make it easy to integrate us on the server-side. Since the library is server-side, you will be required to pass the images (if required) to the library.
If you haven’t already, sign up for a free Smile Identity account, which comes with Sandbox access.

## Dependencies

* Composer build tool

## Documentation

For extensive instructions on usage of the library and sample codes, please refer to the [official Smile Identity documentation](https://docs.smileidentity.com/server-to-server/php)

## Installation

Download smile-identity-core-php repo to a directory on your server where PHP and Composer is installed.
### Installing from the Repository

Download [smile-identity-core-php repository](https://github.com/smileidentity/smile-identity-core-php) to a directory on your server where PHP and Composer is installed.

In that directory, run `composer install`

### Installing from Packagist

View the package on [Packagist](https://packagist.org/packages/smile-identity/smile-identity-core).

Alternatively, the package can be searched locally from a composer-based project by typing the command `composer search <PACKAGE_NAME>` in the command line where `PACKAGE_NAME` can the full name of the package (in this case `smile-identity/smile-identity-core`) or any part of the name distinct enough to return a match.

In the project's directory, run `composer install smile-identity/smile-identity-core`

## License

MIT License

## Documentation

In that directory run `composer install`
For extensive instructions on usage of the library and sample codes, please refer to the official Smile [Identity documentation](https://docs.smileidentity.com/server-to-server/php).

### Usage
## Getting Help

Edit the example_core.php file and replace sections marked with <>
For usage questions, the best resource is [our official documentation](docs.smileidentity.com). However, if you require further assistance, you can file a [support ticket via our portal](https://portal.smileidentity.com/partner/support/tickets) or visit the [contact us page](https://portal.smileidentity.com/partner/support/tickets) on our website.

### Run tests
## Contributing

In same directory run `vendor/bin/phpunit tests`
Bug reports and pull requests are welcome on GitHub at https://github.com/smileidentity/smile-identity-core-php
10 changes: 4 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@
}
],
"require" : {
"php" : "~7.4",
"php" : ">=7.4",
"ext-curl" : "*",
"ext-json" : "*",
"ext-openssl" : "*",
"ext-zip" : "*",
"maennchen/zipstream-php" : "^2.1",
"pablotron/zipstream" : "~0.3",
"guzzlehttp/guzzle" : "^7.0"
"guzzlehttp/guzzle" : "^7.0",
"letsdrink/ouzo-goodies" : "~1.0"
},
"require-dev" : {
"phpunit/phpunit" : "~9.5.8",
"letsdrink/ouzo-goodies" : "~1.0"
"phpunit/phpunit" : "~9.5.8"
},
"autoload" : {
"psr-0" : {
Expand Down
Loading

0 comments on commit f3b4b59

Please sign in to comment.