PHPackages                             gap/user - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. gap/user

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

gap/user
========

Gap User

v1.1.0(8y ago)02611MITPHPPHP &gt;=7.1.0

Since Dec 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gaptree/gap-php-user)[ Packagist](https://packagist.org/packages/gap/user)[ Docs](https://github.com/gaptree/gap-php-user)[ RSS](/packages/gap-user/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (12)Used By (1)

Readme
======

[](#readme)

The fastest way to create user

Database
--------

[](#database)

```
create database `tec-article`;
grant all privileges on `tec-article`.* to 'tec'@'127.0.0.1' identified by 'pass'
```

```
CREATE TABLE `user` (
  `userId` varbinary(64) NOT NULL DEFAULT '',
  `zcode` varbinary(64) NOT NULL DEFAULT '',
  `nick` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `avt` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `logined` datetime NOT NULL,
  `created` datetime NOT NULL,
  `changed` datetime NOT NULL,
  PRIMARY KEY (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

CREATE TABLE `passport` (
  `userId` varbinary(64) NOT NULL DEFAULT '',
  `username` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `passhash` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `created` datetime NOT NULL,
  PRIMARY KEY (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
```

Example
-------

[](#example)

create user

```
