Getting Started with CakePHP 3.5 and Accelerated Mobile Pages (AMP)

Next: Setting up Nginx for CakePHP 3.5 and enable https with dehydrated UP: TOC

We use composer to install CakePHP 3.5

mkdir /usr/....../translate/
composer create-project --prefer-dist cakephp/app cakephp3 Installing cakephp/app (3.5.1) - Installing cakephp/app (3.5.1): Downloading (100%) Created project in cakephp3 Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 47 installs, 0 updates, 0 removals - Installing cakephp/plugin-installer (1.1.0): Loading from cache - Installing aura/intl (3.0.0): Loading from cache - Installing psr/http-message (1.0.1): Downloading (100%) - Installing zendframework/zend-diactoros (1.7.0): Loading from cache - Installing psr/log (1.0.2): Loading from cache - Installing cakephp/chronos (1.1.4): Loading from cache - Installing cakephp/cakephp (3.5.11): Loading from cache - Installing symfony/polyfill-mbstring (v1.7.0): Loading from cache - Installing symfony/yaml (v3.4.4): Loading from cache - Installing symfony/debug (v4.0.4): Loading from cache - Installing symfony/console (v3.4.4): Loading from cache - Installing symfony/filesystem (v4.0.4): Loading from cache - Installing symfony/config (v3.4.4): Loading from cache - Installing robmorgan/phinx (v0.8.1): Downloading (100%) - Installing cakephp/migrations (1.7.2): Loading from cache - Installing m1/env (2.1.0): Loading from cache - Installing josegonzalez/dotenv (2.1.0): Loading from cache - Installing mobiledetect/mobiledetectlib (2.8.30): Loading from cache - Installing twig/twig (v1.35.0): Loading from cache - Installing umpirsky/twig-php-function (v0.1): Loading from cache - Installing jasny/twig-extensions (v1.2.0): Loading from cache - Installing asm89/twig-cache-extension (1.3.2): Loading from cache - Installing aptoma/twig-markdown (2.0.0): Loading from cache - Installing ajgl/breakpoint-twig-extension (0.3.1): Loading from cache - Installing wyrihaximus/twig-view (4.3.1): Loading from cache - Installing cakephp/bake (1.6.0): Loading from cache - Installing squizlabs/php_codesniffer (3.2.2): Loading from cache - Installing cakephp/cakephp-codesniffer (3.0.3): Loading from cache - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%) - Installing symfony/process (v4.0.4): Loading from cache - Installing symfony/finder (v4.0.4): Loading from cache - Installing seld/phar-utils (1.0.1): Loading from cache - Installing seld/jsonlint (1.7.1): Loading from cache - Installing seld/cli-prompt (1.0.3): Loading from cache - Installing justinrainbow/json-schema (5.2.6): Loading from cache - Installing composer/spdx-licenses (1.3.0): Loading from cache - Installing composer/semver (1.4.2): Loading from cache - Installing composer/ca-bundle (1.1.0): Loading from cache - Installing composer/composer (1.6.3): Loading from cache - Installing cakephp/debug_kit (3.12.0): Loading from cache - Installing jakub-onderka/php-console-color (0.1): Loading from cache - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache - Installing nikic/php-parser (v3.1.4): Loading from cache - Installing symfony/polyfill-php72 (v1.7.0): Loading from cache - Installing symfony/var-dumper (v4.0.4): Loading from cache - Installing psy/psysh (v0.8.17): Loading from cache cakephp/app suggests installing markstory/asset_compress (An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.) cakephp/app suggests installing dereuromark/cakephp-ide-helper (After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan compatibility.) cakephp/app suggests installing phpunit/phpunit (Allows automated tests to be run without system-wide install.) cakephp/cakephp suggests installing lib-ICU (The intl PHP library, to use Text::transliterate() or Text::slug()) symfony/console suggests installing symfony/event-dispatcher () symfony/console suggests installing symfony/lock () m1/env suggests installing m1/vars (For loading of configs) asm89/twig-cache-extension suggests installing psr/cache-implementation (To make use of PSR-6 cache implementation via PsrCacheAdapter.) aptoma/twig-markdown suggests installing michelf/php-markdown (Original Markdown engine with MarkdownExtra.) aptoma/twig-markdown suggests installing knplabs/github-api (Needed for using GitHub's Markdown engine provided through their API.) ajgl/breakpoint-twig-extension suggests installing ext-xdebug (The Xdebug extension is required for the breakpoint to work) ajgl/breakpoint-twig-extension suggests installing symfony/framework-bundle (The framework bundle to integrate the extension into Symfony) ajgl/breakpoint-twig-extension suggests installing symfony/twig-bundle (The twig bundle to integrate the extension into Symfony) composer/composer suggests installing ext-zip (Enabling the zip extension allows you to unzip archives) composer/composer suggests installing ext-zlib (Allow gzip compression of HTTP requests) cakephp/debug_kit suggests installing ext-sqlite (DebugKit needs to store panel data in a database. SQLite is simple and easy to use.) symfony/var-dumper suggests installing ext-iconv (To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).) psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :)) psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.) psy/psysh suggests installing ext-readline (Enables support for arrow-key history navigation, and showing and manipulating command history.) psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.) psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.) Writing lock file Generating autoload files > Cake\Composer\Installer\PluginInstaller::postAutoloadDump > App\Console\Installer::postInstall Created `config/app.php` file Created `/usr/local/www/translate/cakephp3/tmp/cache/views` directory Set Folder Permissions ? (Default to Y) [Y,n]? Y Permissions set on /usr/.../translate/cakephp3/tmp/cache Permissions set on /usr/.../translate/cakephp3/tmp/cache/models Permissions set on /usr/.../translate/cakephp3/tmp/cache/persistent Permissions set on /usr/.../translate/cakephp3/tmp/cache/views Permissions set on /usr/.../translate/cakephp3/tmp/sessions Permissions set on /usr/.../translate/cakephp3/tmp/tests Permissions set on /usr/.../translate/cakephp3/tmp Permissions set on /usr/.../translate/cakephp3/logs Updated Security.salt value in config/app.php Next: Setting up Nginx for CakePHP 3.5 and enable https with dehydrated UP: TOC