Skip to content

codebjorn/lumen-8-example

Repository files navigation

Memoji API

Heroku License

Memoji API is small application made using Lumen framework.

Purpose

Just for fun. But mostly this project is made for understanding better how lumen works.

But also this API can be used as tool to provide avatar in your project.

In a nutshell

API provides just endpoints to get different memojies that are saved in png format in resources/memojies The structure itself is:

|-- resources                   
|   |--memojies            
|      |--<gender>          
|         |--<name>   
|            |--<skin tone>   
|               |--happy.png   
|               |--hugging.png   
|               |--thinking.png   
|               |--winking.png   
|               |--<custom posture>.png   
|

How to use

  1. Add new memoji in config/memoji.php to specific gender:
    'men' => [
        ...
        'jack' => [
            'name' => 'jack',
            //If you have custom postures you can add them here
            'postures' => ['nice']
        ],
    ],
  1. Add image for new memoji in resources/memojies/<gender>/<name>/<skinTone>/<posture>.png

Security

If you discover any security related issues, please email quotesun@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT).

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors