varuog / zfe-user
Zend expressive 2. User handling (Alpha)
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:libary
Requires
- php: ^5.6 || ^7.0
- alcaeus/mongo-php-adapter: ^1.1
- doctrine/mongodb-odm: ^1.1
- doctrine/orm: *
- facebook/graph-sdk: ^5.5
- roave/security-advisories: dev-master
- zendframework/zend-authentication: ^2.5
- zendframework/zend-component-installer: ^1.0
- zendframework/zend-config-aggregator: ^1.0
- zendframework/zend-expressive: ^2.0.2
- zendframework/zend-expressive-helpers: ^4.0
- zendframework/zend-expressive-zendrouter: ^2.0.1
- zendframework/zend-expressive-zendviewrenderer: ^1.4
- zendframework/zend-i18n: ^2.7
- zendframework/zend-mail: ^2.8
- zendframework/zend-servicemanager: ^3.3
- zendframework/zend-stdlib: ^3.1
Requires (Dev)
- filp/whoops: ^2.1.7
- phpunit/phpunit: ^6.0.8 || ^5.7.15
- squizlabs/php_codesniffer: ^2.8.1
- zendframework/zend-expressive-tooling: ^0.4.1
- zfcampus/zf-development-mode: ^3.1
Provides
- ext-mongo: 1.6.14
This package is not auto-updated.
Last update: 2024-11-24 03:40:24 UTC
README
Notice
It is under active development. (WIP) Not suitable for production.
Description
Commong User handling task for zend expressive 2 application. currently supports
MongoDB based database, JSON-API payload. Does not includes any view templates
or view helpers. Its end points meant to be consumed by API clients. Though it
is easily possible to compose a view from UserService
and use customized view.
Features
- User is able to register and login
- User can reset their password and email with mail verification. auto discarded reset tokens.
- Customizable mail template for notifying user and admin
- User can be fetched via url
- Access token based authentication
Future plan
- Currently it only supports mongodb. would add doctrine ORM (mysql) and zend-db
- Currently it only supports json-api payload. Would add other payload.
- Add event hook for all process
Installation
$composer require varuog/zfe-user
Copy file zfe-user.global.php
from instllation directory to config\autoload\zfe-user.global.php.dist and
rename it to zfe-user.global.php
Copy data\language
folder from zfe-user and paste it to application data directory
Create other directory data\proxies
, data\hydrators
, data\document
Copy template
folder from zfe-user and paste to application template folder
Add this code block to config\atuoload\dependencies.global.php
under dependency keys
'dependencies' => [ /** * Copy this block */ 'delegators' => [ /** * It should be called from other project */ Application::class => [ \ZfeUser\RouteProvider::class, ], /** * Set up translator resource */ Zend\I18n\Translator\TranslatorInterface::class => [ \ZfeUser\Factory\Delegator\TranslatorDelegatorFactory::class ] ], ]
Credits
Abstract Factories for all action are based on @xtreamwayz one ActionFactory for all