Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/contributte/doctrine-extra-skeleton
🎁 Nette and Doctrine project skeleton with all possible packages. Using Doctrine (@nettrine) and Contributte (@contributte) libraries by @f3l1x.
https://github.com/contributte/doctrine-extra-skeleton
contributte doctrine nette nettrine
Last synced: 3 months ago
JSON representation
🎁 Nette and Doctrine project skeleton with all possible packages. Using Doctrine (@nettrine) and Contributte (@contributte) libraries by @f3l1x.
- Host: GitHub
- URL: https://github.com/contributte/doctrine-extra-skeleton
- Owner: contributte
- License: mit
- Created: 2021-06-08T20:34:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-02T16:02:22.000Z (5 months ago)
- Last Synced: 2024-09-30T13:58:40.656Z (4 months ago)
- Topics: contributte, doctrine, nette, nettrine
- Language: PHP
- Homepage: https://examples.contributte.org/doctrine-extra-skeleton/
- Size: 1.02 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](https://heatbadger.now.sh/github/readme/contributte/doctrine-skeleton/)
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
-----
## Goal
Main goal is to provide best prepared starter-kit project for Nette developers.
Focused on:
- PHP 8.1+
- `nette/*` packages
- Doctrine ORM via `nettrine/*`
- Symfony components via `contributte/*`
- codestyle checking via **CodeSniffer** and `contributte/qa`
- static analysing via **phpstan** and `contributte/phpstan`
- unit / integration tests via **Nette Tester** and `contributte/tester`## Demo
https://examples.contributte.org/doctrine-skeleton/
## Installation
To install latest version of `contributte/doctrine-skeleton` use [Composer](https://getcomposer.org).
```
composer create-project -s dev contributte/doctrine-skeleton acme
```### Install using [docker](https://github.com/docker/docker/)
1) At first, use composer to install this project.
```
composer create-project -s dev contributte/doctrine-skeleton
```2) After that, you have to setup Postgres >= 12 database. You can start it manually or use docker image `dockette/postgres:12`.
```
docker run -it -p 5432:5432 -e POSTGRES_PASSWORD=doctrine -e POSTGRES_USER=doctrine dockette/postgres:12
```Or use make task, `make docker-postgres`.
3) Custom configuration file is located at `config/local.neon`. Edit it if you want.
Default configuration should look like:
```neon
# Host Config
parameters:
# Database
database:
host: localhost
dbname: doctrine
user: doctrine
password: doctrine
```4) Ok database is now running and application is configured to connect to it. Let's create initial data.
Run `NETTE_DEBUG=1 bin/console migrations:migrate` to create tables. Run `NETTE_DEBUG=1 bin/console doctrine:fixtures:load --append` to create first user(s).
Or via task `make build`.
5) Start your devstack or use PHP local development server.
You can start PHP server by running `php -S localhost:8000 -t www` or use prepared make task `make dev`.
6) Open http://localhost:8000 and enjoy!
### Install using [docker-compose](https://https://github.com/docker/compose/)
1) At first, use composer to install this project.
```
composer create-project -s dev contributte/webapp-project
```2) Modify `config/local.neon` and set host to `database`
Default configuration should look like this:
```neon
# Host Config
parameters:
# Database
database:
host: database
dbname: contributte
user: contributte
password: contributte
```3) Run `docker-compose up`
4) Open http://localhost and enjoy!
Take a look at:
- http://localhost.
- http://localhost/admin ([email protected] / admin)### Composer packages
Take a detailed look :eyes: at each single package.
- [contributte/bootstrap](https://contributte.org/packages/contributte/bootstrap.html)
- [contributte/application](https://contributte.org/packages/contributte/application.html)
- [contributte/di](https://contributte.org/packages/contributte/di.html)
- [contributte/cache](https://contributte.org/packages/contributte/cache.html)
- [contributte/http](https://contributte.org/packages/contributte/http.html)
- [contributte/forms](https://contributte.org/packages/contributte/forms.html)
- [contributte/mail](https://contributte.org/packages/contributte/mail.html)
- [contributte/security](https://contributte.org/packages/contributte/security.html)
- [contributte/utils](https://contributte.org/packages/contributte/utils.html)
- [contributte/latte](https://contributte.org/packages/contributte/latte.html)
- [contributte/tracy](https://contributte.org/packages/contributte/tracy.html)
- [contributte/console](https://contributte.org/packages/contributte/console.html)
- [contributte/translation](https://contributte.org/packages/contributte/translation.html)
- [contributte/neonizer](https://contributte.org/packages/contributte/neonizer.html)**Doctrine**
- [contributte/doctrine-orm](https://contributte.org/packages/contributte/doctrine-orm.html)
- [contributte/doctrine-dbal](https://contributte.org/packages/contributte/doctrine-dbal.html)
- [contributte/doctrine-migrations](https://contributte.org/packages/contributte/doctrine-migrations.html)
- [contributte/doctrine-fixtures](https://contributte.org/packages/contributte/doctrine-fixtures.html)
- [contributte/doctrine-extensions-atlantic18](https://contributte.org/packages/contributte/doctrine-extensions-atlantic18.html)**Dev**
- [contributte/dev](https://contributte.org/packages/contributte/dev.html)
- [ninjify/qa](https://contributte.org/packages/ninjify/qa.html)
- [ninjify/nunjuck](https://contributte.org/packages/ninjify/nunjuck.html)
- [phpstan/phpstan](https://github.com/phpstan/phpstan)## Screenshots
![](.docs/assets/screenshot1.png)
## Development
See [how to contribute](https://contributte.org/contributing.html) to this package.
This package is currently maintaining by these authors.
-----
Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this project.