PHPackages                             felipeiise/xogito-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. felipeiise/xogito-api

ActiveLibrary

felipeiise/xogito-api
=====================

PHP task User API

v1.0.3(3y ago)025MITPHP

Since Nov 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/felipeiise/xogito-api)[ Packagist](https://packagist.org/packages/felipeiise/xogito-api)[ RSS](/packages/felipeiise-xogito-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

PHP Task - User API
===================

[](#php-task---user-api)

Instructions
------------

[](#instructions)

Create an API that runs on PHP 7+, uses PostgreSQL for persistence and supports JSON request payloads. The application should have user accounts that can log in to the system using the Multi-factor authentication (MFA) authentication method. Each account can be either an Administrator or a User. You can use any libraries you deem appropriate. For this exercise, the main goal is to analyze your skills with pure PHP coding language. So, please, avoid using a Framework and focus on PHP language only.

User Requirements
-----------------

[](#user-requirements)

- Can complete the registration step ✅
- Can login ✅
- Can update their name ✅

Administrator Requirements
--------------------------

[](#administrator-requirements)

- Can do everything a User can do ✅
- Can create a new account (Users and Administrators) ✅
- Can deactivate an account ✅

Extra Credit
------------

[](#extra-credit)

- Support for composer installation of the API ✅
- Postman request collection for the API ✅
- Documentation ✅

Delivery
--------

[](#delivery)

The project should be added to a public Git repository in any Git host and a URL to the repository must be sent before the end of the deadline. The project should include a README.md file outlining the steps to install and run the project. No external dependencies should be necessary to run the project!

Install
=======

[](#install)

To install the project you can clone the Docker repository (PHP 7.4 + NGINX + PostgreSQL) and install the API via composer

```
git clone https://github.com/felipeiise/xogito-docker.git

```

Move to the cloned repository:

```
cd xogito-docker

```

Start the Docker building process (this can take several minutes)

```
docker compose up -d --build

```

Enter to recently created PHP container:

```
docker exec -it php-srv bash

```

And install the API project with composer (take care to copy the `dot` at the end of the line below)

```
composer create-project felipeiise/xogito-api .

```

Rename the .env.example file to .env

```
mv .env.example .env

```

And that's it, you can just go to the browser and navigate to:

There's one initial administrator:

Email: [first\_admin@email.com](mailto:first_admin@email.com)

Password: 12345678

Or you can install the API not using Docker, just only via composer to some folder in your computer:

```
composer create-project felipeiise/xogito-api

```

```
cd xogito-api

```

Rename the .env.example file to .env

```
mv .env.example .env

```

And you will need to replace the ENVIRONMENT variables in your local `.env` file with your current local installed PostgreSQL credentials:

```
DB_HOST=localhost
DB_USER=postgres
DB_PASSWORD=docker
DB_DATABASE=postgres
DB_PORT=5432

```

There are 2 `.sql` files to execute in the database located in `sql` folder at the root of the repository:

```
create_tables.sql
initial_data.sql

```

To start the API in terminal enter:

```
php -S http://localhost:8080

```

And navigate to:

```
http://localhost:8080

```

There's also a folder called `postman` with a Collection and an Environment file to import and test the API routes.

Author: [@felipeiise](https://github.com/felipeiise)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

1267d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/208d08d530e7074a894f74db7d0a28e85e5b6c6ecb877319c3c1acd53c297b86?d=identicon)[felipeiise](/maintainers/felipeiise)

---

Top Contributors

[![felipeiise](https://avatars.githubusercontent.com/u/22013494?v=4)](https://github.com/felipeiise "felipeiise (14 commits)")

### Embed Badge

![Health badge](/badges/felipeiise-xogito-api/health.svg)

```
[![Health](https://phpackages.com/badges/felipeiise-xogito-api/health.svg)](https://phpackages.com/packages/felipeiise-xogito-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M718](/packages/statamic-cms)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2362.2k2](/packages/hasinhayder-tyro-login)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
