An open API service indexing awesome lists of open source software.

https://github.com/rey26/linked-sorted-list

Linked sorted list using PHP 8.1 and Symfony 6
https://github.com/rey26/linked-sorted-list

phpunit symfony6

Last synced: 3 months ago
JSON representation

Linked sorted list using PHP 8.1 and Symfony 6

Awesome Lists containing this project

README

        

# Linked sorted list

This repository implements linked sorted list of simple entity by its value. It is meant to demonstrate my ability to implement best possible PHP 8.1 practices.

## Installation

1. `docker-compose up -d --build` inside main directory

## Usage

* Create Node entity using NodeFactory, Node value can be either string or integer.
* All nodes in linked list should have either all values of type string or integer.
* Handle LinkedList of Node elements in LinkedListService and use its methods.
* Always set LinkedList before doing anything else.

## Testing

1. run `php bin/phpunit` inside php container (`docker-compose exec php /bin/bash`)