Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 693 Bytes

File metadata and controls

19 lines (13 loc) · 693 Bytes

user

Get a user by id/email and return it in WPS\User format

Parameters

Name Type Description Status Default
$id { Integer , String } The id or email of the user to get required

Return { WPS\User } The user object

Example

	$user = Thorin::user(10);
$user = Thorin::user('olivier.bossel@gmail.com');

Author : Olivier Bossel olivier.bossel@gmail.com https://olivierbossel.com