Giter VIP home page Giter VIP logo

phptaskddd's Introduction

PHP Task API DDD

This is a PHP-based RESTful API that manages tasks using Domain Driven Design (DDD) architecture. The API allows users to create, read, update, and delete tasks.

Table of Contents

  • Installation
  • Usage
  • Endpoints
  • Contributing
  • License

Installation

Clone the repository:

git clone https://github.com/BaseMax/PHPTaskDDD.git

Install dependencies using Composer:

cd PHPTaskDDD
composer install

Copy the .env.example file to .env and put real values.

Configure the database connection in config/db.php.

Run the database migration:

vendor/bin/doctrine-migrations migrate

Usage

Start the built-in PHP server:

php -S localhost:8000 -t public

Use your preferred HTTP client to make requests to the API endpoints.

Endpoints

The API has the following endpoints:

  • GET /tasks Returns a list of all tasks.

  • GET /tasks/{id} Returns a single task by ID.

  • POST /tasks Creates a new task.

  • PUT /tasks/{id} Updates an existing task by ID.

  • DELETE /tasks/{id} Deletes a task by ID.

Contributing

Contributions are welcome! To contribute, please follow these steps:

  • Fork the repository.
  • Create a new branch for your feature.
  • Make your changes and commit them with clear commit messages.
  • Push your branch to your fork of the repository.
  • Create a pull request to the main repository.

License

This project is licensed under the GPL-3.0 license.

phptaskddd's People

Contributors

aliiahmadi avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.