cravelight / email-authentication-service
Email address authentication service
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/cravelight/email-authentication-service
Requires
- php: ^7.0
 - illuminate/database: ^5.2
 - nesbot/carbon: ^1.21
 - robmorgan/phinx: ^0.5.5
 - vlucas/phpdotenv: ^2.2
 
Requires (Dev)
- cravelight/phpunit-helpers: ^1.0.0
 - mockery/mockery: ^0.9.5
 - phpunit/phpunit: ^5.3
 
This package is not auto-updated.
Last update: 2025-10-26 01:44:59 UTC
README
Helper service to support the ability to:
- verify a user has access to an email address
 - store and validate a user provided email/password combination
 
To use, simply install with Composer: composer require cravelight/phpunit-helpers
To make changes, after cloning:
- run 
composer install - copy 
.env.exampleto.envand configure your db credentials - run 
php vendor/bin/phinx migrate - run tests
 
Automated Tests
To run automated test we are using the following frameworks:
- PHPUnit (testing framework)
 - PHP dotenv (setting environment variables)
 
PHPStorm Configuration
To configure PHPStorm:
- Open Preferences and navigate to Languages and Frameworks → PHP → PHPUnit
 - Under PHPUnit library, select Use custom autoloader
 - Enter Path to script as 
[path/to/project/vendor/autoload.php] - In the Test Runner section, select Default bootstrap file and enter the 
[path/to/project/tests/bootstrap.php] - Apply your changes and exit Preferences
 
Command Line
When running from the command line use the following:
 php [path/to/phpunit] --bootstrap [path/to/tests/bootstrap.php] --no-configuration [path/to/tests]
For additional information see: PHPUnit command line options