Skip to content

Commit

Permalink
feature
Browse files Browse the repository at this point in the history
Added composer to the proyect
Added .gitignore to add vendors and composer.lock
  • Loading branch information
kenny Callado committed Oct 30, 2021
1 parent 927828b commit 1e71a81
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/vendor
src/composer.lock

19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# lamp docker-compose boiler plate

## Features

Added composer.

## Turn on

Turn on the lamp `docker-compose up --build`
Expand All @@ -24,3 +28,18 @@ You can configure some things throw the .env. Remember not to share it (.gitigno
By default root password to access mysql _toor_.

Use `mysql/init_db.sql` to insert some sql into mysql on start.

### Composer:

Install all the dependencies `composer install`.

In case you want use _composer_ from docker:

``` bash
docker run --rm --interactive --tty \
--volume $PWD/src:/app \
--user $(id -u):$(id -g) \
composer install
```

Where $PWD is the root directory of this repository.
7 changes: 7 additions & 0 deletions src/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"autoload": {
"psr-4": {
"App\\": "app/"
}
}
}

0 comments on commit 1e71a81

Please sign in to comment.