Skip to content

Commit

Permalink
Restructure project and set up Composer (#30)
Browse files Browse the repository at this point in the history
Implement a new project structure, install Composer, and create
necessary configuration files. Add a logs directory and update
.gitignore for Composer and Visual Studio Code.
  • Loading branch information
0x1026 authored Oct 31, 2024
2 parents 5bcf1df + 27a8e23 commit 5bd3b4f
Show file tree
Hide file tree
Showing 20 changed files with 555 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Created by https://www.toptal.com/developers/gitignore/api/git,visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=git,visualstudiocode

### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig

# Created by git when using merge tools for conflicts
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*_BACKUP_*.txt
*_BASE_*.txt
*_LOCAL_*.txt
*_REMOTE_*.txt

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

# End of https://www.toptal.com/developers/gitignore/api/git,visualstudiocode
12 changes: 12 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Created by https://www.toptal.com/developers/gitignore/api/composer
# Edit at https://www.toptal.com/developers/gitignore?templates=composer

### Composer ###
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock

# End of https://www.toptal.com/developers/gitignore/api/composer
1 change: 1 addition & 0 deletions src/app/Controllers/Controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/app/Core/Database.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/app/Core/Logger.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/app/Core/Router.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/app/Core/Session.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/app/Core/View.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/app/Models/User.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
Empty file.
1 change: 1 addition & 0 deletions src/app/Views/Home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions src/bootstrap/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
13 changes: 13 additions & 0 deletions src/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "projecte-urbantree/urbantree",
"description": "Aplicatiu web per la gestió del manteniment d'arbrat urbà i periurbà",
"type": "project",
"autoload": {
"psr-4": {
"ProjecteUrbantree\\Urbantree\\": "app/"
}
},
"require": {
"vlucas/phpdotenv": "^5.6"
}
}
Loading

0 comments on commit 5bd3b4f

Please sign in to comment.