Download the PHP package felipeiise/xogito-api without Composer

On this page you can find all versions of the php package felipeiise/xogito-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package xogito-api

PHP Task - User API

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

Administrator Requirements

Extra Credit

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

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

Move to the cloned repository:

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

Enter to recently created PHP container:

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

Rename the .env.example file to .env

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

http://localhost/

There's one initial administrator:

Email: [email protected]

Password: 12345678

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

Rename the .env.example file to .env

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

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

To start the API in terminal enter:

And navigate to:

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

Author: @felipeiise


All versions of xogito-api with dependencies

PHP Build Version
Package Version
Requires vlucas/phpdotenv Version ^5.5
firebase/php-jwt Version ^6.3
pragmarx/google2fa Version ^8.0
bacon/bacon-qr-code Version ^2.0
ext-pdo Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package felipeiise/xogito-api contains the following files

Loading the files please wait ....