Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pitchart/dawin-typo3-cms-distribution

Starter TYPO3 pour les Dawin
https://github.com/pitchart/dawin-typo3-cms-distribution

composer installer-typo3 php

Last synced: 26 days ago
JSON representation

Starter TYPO3 pour les Dawin

Awesome Lists containing this project

README

        

# TYPO3-CMS installation

With [composer](https://getcomposer.org/) and [typo3_console](https://packagist.org/packages/helhum/typo3-console)

## Prerequisites

- PHP >= 7.1
- MySQL >= 5.7
- Apache >= 2.1 or Nginx (if available)
- A database user with granted access to **an empty database**

## Development

This distribution is provided with a [laradock](http://laradock.io/) configuration to run TYPO3 with docker.

## Installation

### Using docker

git clone --recursive https://github.com/pitchart/dawin-typo3-cms-distribution.git cms
cd cms/laradock-dawin-t3/
make install-dev

The TYPO3 website is available at http://localhost/ and the backend at http://localhost/typo3/

### Using system environment

You must [download composer binaries](https://getcomposer.org/download/) before to start installation.

#### Clone the repository

git clone --recursive https://github.com/pitchart/dawin-typo3-cms-distribution.git cms
cd cms

#### Install vendors with composer

composer install

#### Install TYPO3 with typo3_console

php vendor/bin/typo3cms install:setup

#### Post installation commands

##### Activate an extension

php vendor/bin/typo3cms extension:activate **extension_key**

##### Flush cache

php vendor/bin/typo3cms cache:flush

##### Launch a PHP server

php -S localhost: -t web/

The TYPO3 website is available at http://localhost:8080/ and the backend at http://localhost:8080/typo3/

### Install on Windows

#### Clone the repository inside C: disk and follow these instructions :

git clone --recursive https://github.com/pitchart/dawin-typo3-cms-distribution.git cms
cd cms

#### Install vendors with composer

composer install

#### Install typo3

php -S localhost: -t web/

- Open the browser at http://localhost:/typo3/
- Set your database to utf8

ALTER DATABASE CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

- Create FIRST_INSTALL file inside web/ directory
- Follow the steps in the browser

#### If Openssl is not available :

Update LocalConfiguration.php file (web/typo3conf/): replace BE/loginSecurityLevel from 'rsa' to 'normal'

## TIPS

### Issues with a version of PHP which is to early (if you use wamp)

Go to wamp files in bin/php/php7.1
Copy the php.exe, paste and rename in php71.exe for example

add this version of php in the path (variables d'environnement systeme )
In a terminal, go to your project and execute this command:

php71 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php71 -r "if (hash_file('sha384', 'composer-setup.php') === 'baf1608c33254d00611ac1705c1d9958c817a1a33bce370c0595974b342601bd80b92a3f46067da89e3b06bff421f182') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php71 composer-setup.php
php71 -r "unlink('composer-setup.php');"
php71 composer.phar install

### Adding your extension's class loading informations

// composer.json
"autoload": {
"psr-4": {
"MyVendor\\MySitePackage\\": "web/typo3conf/ext/my_site_package/Classes"
}
}

### composer.json template for an extension

{
"name": "my-vendor/my-extension-key",
"type": "typo3-cms-extension",
"version": "x.x.x",
"description": "...",
"require": {
"typo3/cms-core": "^8.7"
},
"replace": {
"my_extension_key": "self.version",
"my-vendor/my-extension-key": "self.version"
},
"autoload": {
"psr-4": {
"MyVendor\\MyExtensionKey\\": "Classes/"
}
}
}

### Show php error in development mode

By default Typo3 replaces php errors by a message in order to avoid stopping the page's loading if a php error has occured.
In development mode you need to deactivate this mode.

In List Go to the root page (Page next to earth), then edit the template record.
In the field setup add the following code:

config.contentObjectExceptionHandler = 0

https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#contentobjectexceptionhandler

## References

- [TYPO3 extensions available for composer usage](https://composer.typo3.org/satis.html)
- [TYPO3 Documentations](https://docs.typo3.org/typo3cms/References.html)
- [Composer and TYPO3 7LTS](https://usetypo3.com/typo3-and-composer.html)
- [How to configure class loading for extensions in TYPO3 7LTS](http://insight.helhum.io/post/130876393595/how-to-configure-class-loading-for-extensions-in)
- [Add a Git repository as a package using Composer for PHP](http://www.andrew-kirkpatrick.com/2012/10/add-a-git-repository-as-a-package-using-composer-for-php/)
- [Typo3 viewhelpers documentation](https://fluidtypo3.org/viewhelpers.html)