Homework assignment for an job opening for PHP developer

Overview

favorite_countries

Homework assignment for an job opening for PHP developer

Description:

This app lets registered users to be able to save favourite countires form a list and add decription/comments to each favourite countries.

Prerequisites:

  • PHP 7.0 or greater
  • Composer
  • MySql database with executed predefined tables in a database countries (run the script ./countries.sql);

Optional

  • Postman

Install the app locally

  1. Git clone the repository

git clone https://github.com/Missellena/favorite_countries

  1. Go to root folder

cd /favourite_countries

  1. Install dependencies

composer install

  1. Open file ./config_sample.php and instert database credentials

  2. Rename file to config.php and Save the file

  3. Open terminal to root app folder (favourite_countries) and serve app with php -S localhost:8000

  4. Go to http://localhost:8000 and log in with predefined credentials

  • username: Test
  • password: password
  1. For testing the code with sniffer run

./vendor/bin/phpcs -n App/

  1. For automatically fixing errors run

./vendor/bin/phpcbf -n App/

  1. For using postman make sute the cookie form a loged in broser is inserted into the Postam Session.

Enjoy!

You might also like...
 amadeus-ws-client: PHP client for the Amadeus GDS SOAP Web Service interface
amadeus-ws-client: PHP client for the Amadeus GDS SOAP Web Service interface

amadeus-ws-client: PHP client for the Amadeus GDS SOAP Web Service interface This client library provides access to the Amadeus GDS SOAP Web Service i

Mibew Messenger - open-source live support application written in PHP and MySQL

Mibew Messenger is an open-source live support application written in PHP and MySQL. It enables one-on-one chat assistance in real-time directly from your website.

A PHP library to read and write feeds in JSONFeed, RSS or Atom format

feed-io feed-io is a PHP library built to consume and serve news feeds. It features: JSONFeed / Atom / RSS read and write support Feeds auto-discovery

A simple PHP library for complex monetary prices management

PHP Prices 💸 Version 2.x This new major version is shifting the package towards more flexibility and configuration possibilities in general. One of t

PHP backend Scripts to add and Manage Live tv Streaming android app
PHP backend Scripts to add and Manage Live tv Streaming android app

PHP Backend to Manage Live TV Streaming Android app Follow Given Steps to Setup Local Environment to run this php Script Setting Up Local Environment

PHP, MySQL and JS based web chat application
PHP, MySQL and JS based web chat application

About The Project Chat Application coded in PHP, CSS3 and JS. This is just a project to learn and improve understanding on certain topics. This is not

A web application for a school, facilitating the registration of students. Built using HTML/CSS, PHP and Oracle.

Student Registration System A web application for a school, facilitating the registration of students. Built using HTML/CSS, PHP and Oracle. Included

Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets)

clue/socket-raw Simple and lightweight OOP wrapper for PHP's low-level sockets extension (ext-sockets). PHP offers two networking APIs, the newer stre

A much faster alternative to youtube-dl built for PHP applications.
A much faster alternative to youtube-dl built for PHP applications.

youtube-downloader This project was inspired by a very popular youtube-dl python package: https://github.com/rg3/youtube-dl Yes, there are multiple ot

Owner
Elena
Elena
The php gRPC server framework with php-fpm and nginx.

php-grpc-server-protobuf The php grpc server framework with protobuf and DO NOT use any 3rd libraries or use Swoole. Support protobuf and json request

HeTao 5 Nov 17, 2022
Database management in a single PHP file

Adminer - Database management in a single PHP file Adminer Editor - Data manipulation for end-users https://www.adminer.org/ Supports: MySQL, MariaDB

Jakub Vrána 5.5k Jan 8, 2023
A platform to create documentation/wiki content built with PHP & Laravel

BookStack A platform for storing and organising information and documentation. Details for BookStack can be found on the official website at https://w

BookStackApp 10.6k Jan 3, 2023
PHP Server Monitor

PHP Server Monitor Version 3.6.0.beta2 PHP Server Monitor is a script that checks whether your websites and servers are up and running. It comes with

PHP Server Monitor 2.1k Jan 1, 2023
phpSysInfo: a customizable PHP script that displays information about your system nicely

phpSysInfo Copyright (c), 1999-2008, Uriah Welcome (sf.net/users/precision) Copyright (c), 1999-2009, Michael Cramer (sf.net/users/bigmichi1) Copyrigh

phpSysInfo 1.3k Jan 1, 2023
:panda_face: Jitamin is a free software written in PHP, intended to handle the project management over the web. QQ群: 656868

Jitamin Jitamin (pronounced /ˈdʒɪtəmɪn/) is a free software written in PHP, intended to handle the project management over the web. Jitamin is inspire

jitamin 916 Dec 14, 2022
Satu platform demo ringkas untuk rujukan Basic PHP

praktisphpmysql Satu platform demo ringkas untuk rujukan Basic PHP Demo https://legoom.biz.my/praktisphpmysql/ Belajar Koding Kemasukan Mei dan Septem

RB 11 Jun 21, 2022
Shoutit is a PHP powered shoutbox which uses mySQL to store shouts

This is a very basic PHP/MySQL application. built to prove my usuage of basic php + MySQL. It is very easy to use, has error checking, and very fast. Users can post shouts along with their names & comment.

Roman Hossain Shaon 10 Oct 10, 2022
Um chat web feito com HTML, CSS, SASS, JS, PHP e MYSQL

ChatWeb Tecnologias Front-end usadas: Pré processador CSS: Linguagem de programação usada: Projeto hospedado no: Editor de texto usado: Objetivos: Par

Adriel Cavalcante 4 Oct 27, 2022
Bulit PHP Twitter Clone IN OOP style and using MYSQL Database.

Bulit PHP Twitter Clone IN OOP style and using MYSQL Database. AJAX and Jquery for requests without reloading like Follow/unfollow, like, Search users, Show popups like comment , User lists, etc.

Amin 47 Dec 3, 2022