Download the PHP package ezavalishin/vkma without Composer
On this page you can find all versions of the php package ezavalishin/vkma. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ezavalishin/vkma
More information about ezavalishin/vkma
Files in ezavalishin/vkma
Package vkma
Short Description :package_description
License MIT
Homepage https://github.com/ezavalishin/vkma
Informations about the package vkma
VKMA
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Publish config
Usage
Authentication
Package provides auth driver vkma
You can put it in your config/auth.php
Guard get or create user in your db by vk_user_key
Next you can use middleware auth:vkma
and send request with header Vk-Params
base64 encoded vk launch params
Example
Javascript
Laravel
Filling user from vk
Package provides Job FillUser
which filling your db with data from vk
Prepare
You should implement VKMAUserInterface
and use trait VKMAUserable
also map vk fields
Now you can easily fill your user model just dispatch job
Or you can do it when user created, just add in your model:
Custom parsers
When job fetch field from vk you can easily change its format
Add in your model public method parse{VkFieldName}
(camel case) and return value which will be stored in db
Example:
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Evgeniy Zavalishin
- All Contributors
License
MIT. Please see the license file for more information.
All versions of vkma with dependencies
illuminate/http Version ~7|~8
illuminate/database Version ~7|~8
illuminate/bus Version ~7|~8
illuminate/contracts Version ~7|~8
vkcom/vk-php-sdk Version ^5.101