bedita / api-template
BEdita5 API project template app
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
pkg:composer/bedita/api-template
Requires
- php: >=8.3
- bedita/api: ^6.0
- bedita/aws: ^5.0
- bedita/core: ^6.0
- cakephp/cakephp: ~5.2.9
- cakephp/plugin-installer: ^2.0
Requires (Dev)
- bedita/dev-tools: ^3.2
- cakephp/bake: ^3.5.0
- cakephp/cakephp-codesniffer: ^5.0
- cakephp/debug_kit: ^5.3.0
- cakephp/repl: ^2.0.1
- dereuromark/cakephp-ide-helper: ^2.5.3
- josegonzalez/dotenv: ^4.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.0
- phpunit/phpunit: ^11.5 || ^12.1
Suggests
- markstory/asset_compress: An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.
README
This is the skeleton app to build BEdita5 API projects.
Requirements
- PHP >= 8.3
- Download latest Composer or update via
composer self-update.
Installation
Simply run
composer create-project bedita/api-template
In case you want to use a custom app dir name (e.g. myapp/):
composer create-project bedita/api-template myapp
You can now either use your machine's webserver to view the default home page, or start up the built-in webserver with:
bin/cake server
Then visit http://localhost:8765 to see the welcome page.
Configuration
Review and edit accordingly every configuration item in config/app_local.php.
Make sure at least Datasources points to the desired DB instance.
Namespace
You need to manually change the default MyApp namespace in order to use a custom one (recommended before any application logic is introduced).
Files referencing MyApp are:
composer.jsonbin/cake.phpconfig/app.phpor override inconfig/app_local.phpsrc/Console/installer.phpsrc/Shell/ConsoleShell.phpApplication.php(andtest/TestCase/ApplicationTest.php)webroot/index.php
Make sure to launch composer dump-autoload after this manual change in order to update autoloader data