PHP code example of citomni / app-skeleton

1. Go to this page and download the library: Download citomni/app-skeleton library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

citomni / app-skeleton example snippets



declare(strict_types=1);

return [
	'placeholders' => [
		// citomni/kernel: config/citomni_cfg.php
		'APP_NAME' => 'My App',
		'LANGUAGE' => 'en',
		'ICU_LOCALE' => 'en_US',
		'TIMEZONE' => 'UTC',
		'CHARSET' => 'UTF-8',
		'OPERATOR_NAME' => 'Example Ltd.',
		'OPERATOR_EMAIL' => '[email protected]',
		'OPERATOR_URL' => 'https://www.example.com',
		'PUBLIC_CONTACT_NAME' => 'Example Ltd.',
		'PUBLIC_CONTACT_EMAIL' => '[email protected]',
		'PUBLIC_CONTACT_PHONE' => '+45 12 34 56 78',
		'PUBLIC_CONTACT_URL' => 'https://www.example.com/contact',
		'TECHNICAL_SUPPORT_NAME' => 'Example Ltd.',
		'TECHNICAL_SUPPORT_EMAIL' => '[email protected]',
		'TECHNICAL_SUPPORT_PHONE' => '+45 12 34 56 78',
		'TECHNICAL_SUPPORT_URL' => 'https://www.example.com/support',
		'DEVELOPER_NAME' => 'Example Ltd.',
		'DEVELOPER_EMAIL' => '[email protected]',
		'DEVELOPER_URL' => 'https://www.example.com',

		// citomni/http (stage and prod config) and citomni/cli (stage and prod launcher)
		'STAGE_ROOT_URL' => 'https://stage.example.com',
		'PROD_ROOT_URL' => 'https://www.example.com',
	],
];


declare(strict_types=1);

return [
	'identity' => [
		'app_name' => 'My App',
	],
];


declare(strict_types=1);

return [
	// \Vendor\Package\Boot\Registry::class,
];


declare(strict_types=1);

return [
	// 'example' => \App\Service\ExampleService::class,
];
text
.htaccess
public/index.php
public/.htaccess
public/robots.txt
public/assets/.gitkeep
public/uploads/.htaccess
config/citomni_http_cfg.php
config/citomni_http_cfg.dev.php
config/citomni_http_cfg.stage.php
config/citomni_http_cfg.prod.php
config/citomni_http_routes.php
config/citomni_http_routes.dev.php
config/citomni_http_routes.stage.php
config/citomni_http_routes.prod.php
config/services_http.php
src/Http/Controller/AppController.php
templates/public/maintenance.php.tpl
templates/member/.gitkeep
templates/admin/.gitkeep
text
bin/citomni
config/citomni_cli_cfg.php
config/citomni_cli_cfg.dev.php
config/citomni_cli_cfg.stage.php
config/citomni_cli_cfg.prod.php
config/citomni_cli_commands.php
config/citomni_cli_commands.dev.php
config/citomni_cli_commands.stage.php
config/citomni_cli_commands.prod.php
config/services_cli.php
text
config/citomni_cfg.php
config/citomni_cfg.dev.php
config/citomni_cfg.stage.php
config/citomni_cfg.prod.php
config/providers.php
config/services.php
text
config/citomni_http_cfg.php
config/citomni_http_cfg.dev.php
config/citomni_http_cfg.stage.php
config/citomni_http_cfg.prod.php
text
config/citomni_cli_cfg.php
config/citomni_cli_cfg.dev.php
config/citomni_cli_cfg.stage.php
config/citomni_cli_cfg.prod.php
text
config/services_http.php
text
config/services_cli.php
text
config/citomni_http_routes.php
config/citomni_http_routes.dev.php
config/citomni_http_routes.stage.php
config/citomni_http_routes.prod.php
text
config/citomni_cli_commands.php
config/citomni_cli_commands.dev.php
config/citomni_cli_commands.stage.php
config/citomni_cli_commands.prod.php
text
citomni/app-skeleton
	Owns the neutral app container.

citomni/kernel
	Owns common config scaffold such as citomni_cfg.php, services.php, and providers.php.

citomni/http
	Owns HTTP runtime and HTTP scaffold.

citomni/cli
	Owns CLI runtime and CLI scaffold.

citomni/installer
	Materializes package-owned scaffold into the app.
bash
composer dump-autoload