contributte / doctrine-extra-skeleton

🎁 Nette and Doctrine project skeleton with all possible packages. Using Doctrine (@nettrine) and Contributte (@contributte) libraries by @f3l1x.

Home Page:https://examples.contributte.org/doctrine-extra-skeleton/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website πŸš€ contributte.org | Contact πŸ‘¨πŸ»β€πŸ’» f3l1x.io | Twitter 🐦 @contributte


Goal

Main goal is to provide best prepared starter-kit project for Nette developers.

Focused on:

  • latest PHP 8.0
  • nette/* packages
  • Doctrine ORM via nettrine/*
  • Symfony components via contributte/*
  • codestyle checking via CodeSniffer and ninjify/*
  • static analysing via phpstan
  • unit / integration tests via Nette Tester and ninjify/*

Demo

https://examples.contributte.org/doctrine-skeleton/

Installation

To install latest version of contributte/doctrine-skeleton use Composer.

composer create-project -s dev contributte/doctrine-skeleton acme

Install using 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 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 app/config/local.neon. Edit it if you want.

    Default configuration should look like:

    # 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!

Composer packages

Take a detailed look πŸ‘€ at each single package.

Doctrine

Dev

Screenshots

Development

See how to contribute to this package.

This package is currently maintaining by these authors.


Consider to support contributte development team. Also thank you for using this project.

About

🎁 Nette and Doctrine project skeleton with all possible packages. Using Doctrine (@nettrine) and Contributte (@contributte) libraries by @f3l1x.

https://examples.contributte.org/doctrine-extra-skeleton/

License:MIT License


Languages

Language:PHP 77.6%Language:Latte 10.8%Language:CSS 7.5%Language:Makefile 3.7%Language:Dockerfile 0.3%