Skip to content

Commit

Permalink
Composer: Migrate project to Composer and PSR-4 autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
mrblur committed Jun 11, 2022
1 parent 43f1d49 commit 2d953a4
Show file tree
Hide file tree
Showing 56 changed files with 3,261 additions and 813 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/nbproject
/nbproject/private/
/view/analytics.html
/doc/
/doc/
/vendor/
/.idea/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM programistyk/php-runtimes:7.2-nginx
FROM programistyk/php-runtimes:7.4-nginx
ADD . /app
ADD config.nginx /etc/nginx/sites-enabled/default
ADD fuelio.ini /usr/local/etc/php/conf.d/fuelio.ini
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# FuelioImport
Data converter for importingo into great Fuelio app. Currently very limited (but working) GUI is available for PHP 5 built-int webserver.
Data converter for importingo into great Fuelio app. Currently very limited (but working) GUI is available for PHP built-int webserver.

FuelioImport is developed from the need to move personal fillups history from Motostat and aCar, but it is designed to offer ease of extension for new formats.

Expand Down Expand Up @@ -29,6 +29,6 @@ After importing into Fuelio, remember to verify or set your cars fuel type! Fuel
Drivvo backups are locale-dependant, so in order to support all of them, we need to be given more examples. Currently spanish, english and polish backups should be working fine. Others might missinterpret "refuelling to full" flag.

## Requirements
FuelioImport converter is built for current PHP version (PHP7), but any stable PHP version should do the job.
FuelioImport converter is built for PHP version 7.4.

* For aCar backup we need SimpleXMLElement and Zip support
2 changes: 1 addition & 1 deletion apigen.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source:
- lib
- src

destination: doc
templateTheme: bootstrap
46 changes: 46 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "programistyk/fuelio",
"description": "Fuelio Imports Converter",
"type": "project",
"homepage": "https://fuelio.programistyk.pl",
"require": {
"php": "^7.4",
"ext-zip": "*",
"ext-simplexml": "*",
"ext-xml": "*",
"ext-json": "*"
},
"require-dev": {
"vimeo/psalm": "^4.23",
"phpstan/phpstan": "^1.7"
},
"license": "MIT",
"autoload": {
"psr-4": {
"FuelioImporter\\": "src/"
}
},
"authors": [
{
"name": "Kamil Kamiński",
"email": "kamil@programistyk.pl",
"homepage": "https://programistyk.pl",
"role": "Developer"
},
{
"name": "Adrian Kajda",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/Programistyk/FuelioImport/issues",
"source": "https://github.com/Programistyk/FuelioImport"
},
"minimum-stability": "stable",
"config": {
"platform": {
"php": "7.4"
},
"sort-packages": true
}
}
Loading

0 comments on commit 2d953a4

Please sign in to comment.