Simple Todo App built with Vanilla PHP and SQLite.
- Add and view tasks
- Delete a task
- Complete a task
- Set a priority for my tasks
- View the tasks sorted by priority and name
- View the number of total and completed tasks
This will guide you through the basic installation of the app. If you find any issues or want to request a feature, contact me at @lodev09.
- Apache (with mod_rewrite enabled)
- PHP 7.3+ with the following extensions:
pdo
This project uses Composer to manage its dependencies and extensions. Before installing, you will need to install Composer on your machine. Afterwards, run this command within the root folder where composer.json is located:
composer installThis project uses the package vlucas/phpdotenv to store sensitive and private information like database credentials. The package includes an .env file that you can modify as needed. Save sample.env as .env in the root folder.
If you wish not to use .env, feel free to comment in config.php and modify the constants as needed.
// load configuration
// $dotenv = Dotenv\Dotenv::create(ROOT_PATH, '.env');
// $dotenv->load();
// set the constant DB_PATH for example.
define('DB_PATH', 'path/to/todo.db');The project includes a .htaccess file in the public directory – make sure it has been uploaded correctly.
DocumentRoot "/path/to/your/to-do/public"
<Directory "/path/to/your/to-do/public">
AllowOverride All
</Directory>