setcookie('username', 'JohnDoe', time()+3600);
setcookie('language', 'English', time()+3600, '/');
setcookie('token', '123456', time()+3600, '/', 'example.com', true);The setcookie function is a native PHP function and does not require any package or library to be installed.