# How to create Datarepository? Similary UserRepository

**URL:** <https://discourse.laminas.dev/t/how-to-create-datarepository-similary-userrepository/2706>\
**Category:** Mezzio\
**Tags:** expressive, laminas-mvc\
**Created:** [January 11, 2022, 9:47am UTC](https://discourse.laminas.dev/t/how-to-create-datarepository-similary-userrepository/2706 "2022-01-11T09:47:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Antonio\_Campos](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/jose_antonio_campos/32/1231_2.png) [@Jose\_Antonio\_Campos](https://discourse.laminas.dev/u/Jose_Antonio_Campos)\
**Post date:** [January 11, 2022, 9:47am UTC](https://discourse.laminas.dev/t/how-to-create-datarepository-similary-userrepository/2706/1 "2022-01-11T09:47:07Z")

</div>

I’m trying to create something like the UserRepository of mezzio-authentication.  
Let me explain, I want to have the possibility of creating adapters, so that the data of the module that I am developing, can be obtained from a flat file, from a database or even from a rest web service

Thanks
