# Example Code in PHP how to Create a new User

**URL:** https://meta.discourse.org/t/example-code-in-php-how-to-create-a-new-user/72186
**Category:** Development
**Created:** [October 16, 2017, 3:14pm UTC](https://meta.discourse.org/t/example-code-in-php-how-to-create-a-new-user/72186 "2017-10-16T15:14:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![MakaryGo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/makarygo/32/187426_2.png) [@MakaryGo](https://meta.discourse.org/u/MakaryGo)
#### Post date: [October 16, 2017, 3:38pm UTC](https://meta.discourse.org/t/example-code-in-php-how-to-create-a-new-user/72186/2 "2017-10-16T15:38:51Z")

</div>

Wouldn’t it be easier to use import script? This importer can be an excellent base to make your own, just change DB table and row names from PHPBB’s to yours, and comment out anything that is not user-related: [Migrate a phpBB3 forum to Discourse](https://meta.discourse.org/t/importing-from-phpbb3/30810) 🙂

---

_[View the full topic](https://meta.discourse.org/t/example-code-in-php-how-to-create-a-new-user/72186)._
