PHPackages                             crabstudio/app - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. crabstudio/app

ActiveProject

crabstudio/app
==============

CakePHP skeleton app

3.2.9(9y ago)153765[1 issues](https://github.com/ctlabvn/app/issues)MITJavaScriptPHP &gt;=5.5.9

Since Jun 24Pushed 9y ago5 watchersCompare

[ Source](https://github.com/ctlabvn/app)[ Packagist](https://packagist.org/packages/crabstudio/app)[ Docs](http://crabstudio.info)[ RSS](/packages/crabstudio-app/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (11)Versions (34)Used By (0)

CakePHP Application Skeleton
============================

[](#cakephp-application-skeleton)

[![Build Status](https://camo.githubusercontent.com/54e6faf27bc7ea428d1bb1ed127ab2d90c1252bcb2838f34860a5756a1cd928e/68747470733a2f2f7472617669732d63692e6f72672f6372616273747564696f2f6170702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crabstudio/app) [![License](https://camo.githubusercontent.com/da902cdfad5977181deee2bbebf7fc2864793cc5c8859f8d078b5bebf7d7e0c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63616b657068702f6170702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cakephp/app) [![Latest Stable Version](https://camo.githubusercontent.com/ea8d84c7535b164c8b691c47422c3cfbfdd28a8c1c027636091a21b65c2f669d/68747470733a2f2f706f7365722e707567782e6f72672f6372616273747564696f2f6170702f762f737461626c65)](https://packagist.org/packages/crabstudio/app) [![Total Downloads](https://camo.githubusercontent.com/bd198f795f4b885ccfa34d09251fdee17982501b0f442f62746692cda22518e7/68747470733a2f2f706f7365722e707567782e6f72672f6372616273747564696f2f6170702f646f776e6c6f616473)](https://packagist.org/packages/crabstudio/app) [![Latest Unstable Version](https://camo.githubusercontent.com/c551e142efb7e8c7bccd585c2ac3932a92b855b0fa017b9516dcfc9b59fb29c6/68747470733a2f2f706f7365722e707567782e6f72672f6372616273747564696f2f6170702f762f756e737461626c65)](https://packagist.org/packages/crabstudio/app)

A skeleton for creating applications with [CakePHP](http://cakephp.org) 3.x.

The framework source code can be found here: [cakephp/cakephp](https://github.com/cakephp/cakephp).

Features
--------

[](#features)

1. Authenticate, Authorize
2. Backend ready
3. Simple shells =&gt; Power tool
4. New CRUD bake template
5. Send bulk email
6. Backup database job
7. Store Settings in database
8. Improve pages peed: .htaccess, minify html, cdn, cache
9. Integrated file manager, tinymce
10. Prevent brute force attack
11. Remember/Auto login
12. Compress whole project to `deploy.tar.gz` file to ship in one click `(deploy/compress.sh)`
13. Provide VERY SIMPLE script to set up nginx ([script link](https://gist.github.com/anhtuank7c/657f46700e3ac12d1ab5e1f6345cb789))

Support my passion [![paypal](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=anhtuank7c%40hotmail%2ecom&lc=US&item_name=Crabstudio%20CakePHP%203%20%2d%20FlatAdmin%20Skeleton&item_number=crabstudio%2dcakephp%2dskeleton&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#support-my-passion-)

Create project
--------------

[](#create-project)

1. Download [Composer](http://getcomposer.org/doc/00-intro.md) or update `composer self-update`.
2. Run `php composer.phar create-project --prefer-dist crabstudio/app [app_name]`.

If Composer is installed globally, run

```
composer create-project --prefer-dist crabstudio/app [app_name]

```

Installation
------------

[](#installation)

Initial new application

1. Setup `Datasource` in `config/app.php`
2. Run and follow the command: `bin/cake install`
3. Application **ready** to use.

Refactory
---------

[](#refactory)

**Incase you want to wipe and reinstall application**

1. Run and follow the command: `bin/cake refactory`
2. Application ready to use.

Available shell commands
------------------------

[](#available-shell-commands)

```
	bin/cake install			: install default database
	bin/cake refactory			: wipe existing database then install factory database
	bin/cake users				: insert administrator
	bin/cake roles				: insert 3 default roles [admin, manager, member]
	bin/cake settings			: insert default settings
	bin/cake scheduler 			: run task, let's create crontab schedule [scroll down to Crontab schedule]

```

EmailQueue
----------

[](#emailqueue)

If you want to build an url point to your Controller, build it in the controller and set to the view

```
// Router

$routes->connect('/verify/:token/:email', [
	'controller' => 'Coupons',
	'action' => 'verify'
], [
	'token' => '[a-z0-9]+',
	'email' => '^[A-Za-z0-9._%+-]+@([A-Za-z0-9-]+\.)+([A-Za-z0-9]{2,4}|museum)$',
	'pass' => [
		'token',
		'email'
	]
]);

// Build url

use Cake\ORM\TableRegistry;
use Cake\Routing\Router;

TableRegistry::get('EmailQueue')
	->enqueue(
		$emailAddress,
		[
			'user' => 'Anh Tuan',
			'variable_url' => Router::url([
				'controller' => 'Coupons',
				'action' => 'verify',
				$tokenString,
				$emailAddress,
				'_full' => true
			])
		], [
	        'subject' => __('Issue the coupon'),
	        'template' => 'Coupon/issue',
	        'format' => 'html',
	        'layout' => 'default'
	    ]);

// Email view (src/Template/Email/html/Coupon/issue.ctp)

```

Bake
----

[](#bake)

You can use bake to generate CRUD code, then you're ready to use.

```
bin/cake bake all Posts --prefix admin

```

Template theme
--------------

[](#template-theme)

[Backend](https://github.com/tui2tone/flat-admin-bootstrap-templates)

[Email](https://github.com/leemunroe/responsive-html-email-template)

Add menu to the backend
-----------------------

[](#add-menu-to-the-backend)

Edit `src/Template/Element/Admin/navbar_side.ctp` to add more menu

Included Plugins
----------------

[](#included-plugins)

[MinifyHtml](https://github.com/WyriHaximus/MinifyHtml)

[TinyAuth](https://github.com//dereuromark/cakephp-tinyauth)

[CookieAuth](https://github.com/Xety/Cake3-CookieAuth)

[Search](https://github.com/friendsofcake/search)

Backend Template:
-----------------

[](#backend-template)

This skeleton use [Flat Admin v2](https://github.com/tui2tone/flat-admin-bootstrap-templates) as new bake template

You just do bake code, you're good to go.

Crontab schedule:
-----------------

[](#crontab-schedule)

Open crontab `crontab -e` then add cronjob:

```
*/5 * * * * cd /path/to/app && bin/cake Scheduler

```

Compress project to ship
------------------------

[](#compress-project-to-ship)

Go to `deploy` folder then double click on `compress.sh`

Set up nginx Web server
-----------------------

[](#set-up-nginx-web-server)

I recommend you to use nginx server.

Use this [simple script](https://gist.github.com/anhtuank7c/657f46700e3ac12d1ab5e1f6345cb789) to set up **optimized** nginx on ubuntu in **4 simple steps**.

[![test](https://cloud.githubusercontent.com/assets/3163410/17489971/df7400aa-5dca-11e6-8278-a2b28b95a480.PNG)](https://cloud.githubusercontent.com/assets/3163410/17489971/df7400aa-5dca-11e6-8278-a2b28b95a480.PNG)

Demo
====

[](#demo)

[![Login page](https://camo.githubusercontent.com/3b1d0b3f02a2296bb6451cb04ce859883fcb2700887ea6d52e7fa5b1841f89da/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f31653637366361393138346534616637386631636165383562386232393465352e706e67)](https://camo.githubusercontent.com/3b1d0b3f02a2296bb6451cb04ce859883fcb2700887ea6d52e7fa5b1841f89da/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f31653637366361393138346534616637386631636165383562386232393465352e706e67)

[![Lost password](https://camo.githubusercontent.com/75611d83c2960afc2d4d9e8a0e880a39c7863558ca8fb1565746b7a2e391f691/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f34623730323736383862613334366437393263336463336336343134346137642e706e67)](https://camo.githubusercontent.com/75611d83c2960afc2d4d9e8a0e880a39c7863558ca8fb1565746b7a2e391f691/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f34623730323736383862613334366437393263336463336336343134346137642e706e67)

[![Register](https://camo.githubusercontent.com/e26565846e499f69f74b7dd34474aa539130da1ad4e492af8d8967e26886295d/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f31663062336331356238326134636437386231626639313139373334653739342e706e67)](https://camo.githubusercontent.com/e26565846e499f69f74b7dd34474aa539130da1ad4e492af8d8967e26886295d/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f31663062336331356238326134636437386231626639313139373334653739342e706e67)

[![Maintenance mode](https://camo.githubusercontent.com/2ab5377370d7753ebc3e18e6a7daa4a813a3d8c3f53877e7c68df809c1892e67/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f61343365336138393733636134666562616132353433393831666230633937382e706e67)](https://camo.githubusercontent.com/2ab5377370d7753ebc3e18e6a7daa4a813a3d8c3f53877e7c68df809c1892e67/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f61343365336138393733636134666562616132353433393831666230633937382e706e67)

[![File Manager](https://camo.githubusercontent.com/79391d4f4bb159b0787184634439ad673843644765cade10cbcda835465a10f1/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33653863613636336664363534393563383963356264303632666234316234652e706e67)](https://camo.githubusercontent.com/79391d4f4bb159b0787184634439ad673843644765cade10cbcda835465a10f1/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33653863613636336664363534393563383963356264303632666234316234652e706e67)

[![Setting member](https://camo.githubusercontent.com/409df11619ebfa9e68f10a15555ed9e89b5937aed1aad5b24dfc07d26a089ed5/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33383861313162383538626534313063396337373265623835306163306263352e706e67)](https://camo.githubusercontent.com/409df11619ebfa9e68f10a15555ed9e89b5937aed1aad5b24dfc07d26a089ed5/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33383861313162383538626534313063396337373265623835306163306263352e706e67)

[![Change password](https://camo.githubusercontent.com/3b1c06a71b4255c3dd831b4d8d431f227944f26dcf3f901dc7331d7bb71f3241/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33393164643637633734383134366236613431326139323339336533643361332e706e67)](https://camo.githubusercontent.com/3b1c06a71b4255c3dd831b4d8d431f227944f26dcf3f901dc7331d7bb71f3241/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33393164643637633734383134366236613431326139323339336533643361332e706e67)

[![Task schedule](https://camo.githubusercontent.com/96306e7ecae292a7b6ea8d959d07e94525ec67c620a7fc4b8799a8fd94b765a5/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f34343866653039626463383134623134393838326535306566636465323439642e706e67)](https://camo.githubusercontent.com/96306e7ecae292a7b6ea8d959d07e94525ec67c620a7fc4b8799a8fd94b765a5/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f34343866653039626463383134623134393838326535306566636465323439642e706e67)

CRUD
====

[](#crud)

[![Index](https://camo.githubusercontent.com/10cf864bca66befdec6e5d5241e44cf22a6f6c794151b8dc3adde36a27a92756/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33646237313832353031323834343861386133353733376232366562386464622e706e67)](https://camo.githubusercontent.com/10cf864bca66befdec6e5d5241e44cf22a6f6c794151b8dc3adde36a27a92756/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f33646237313832353031323834343861386133353733376232366562386464622e706e67)

[![Add](https://camo.githubusercontent.com/736967bc409bc33069149d1f709d9e2b9e87e242885061b8ae3b27d0cb9b9efe/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f36643335666462633939386534333162386538303534616564623235336262382e706e67)](https://camo.githubusercontent.com/736967bc409bc33069149d1f709d9e2b9e87e242885061b8ae3b27d0cb9b9efe/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f36643335666462633939386534333162386538303534616564623235336262382e706e67)

[![Edit](https://camo.githubusercontent.com/6f990c7721f0da522ba8548d0b7d3d392cd1a2d86d1bae533d4414eebd4ebcab/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f34366136383730656539646334383034623038316463396132333264323638632e706e67)](https://camo.githubusercontent.com/6f990c7721f0da522ba8548d0b7d3d392cd1a2d86d1bae533d4414eebd4ebcab/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f34366136383730656539646334383034623038316463396132333264323638632e706e67)

[![View](https://camo.githubusercontent.com/4bcd54edc0afd2c266ae939d0455cc03414c656b4aef02d628f139c606b54101/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f38653832306134646166323434643766393962373764306137623233653465312e706e67)](https://camo.githubusercontent.com/4bcd54edc0afd2c266ae939d0455cc03414c656b4aef02d628f139c606b54101/687474703a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f38653832306134646166323434643766393962373764306137623233653465312e706e67)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Recently: every ~15 days

Total

29

Last Release

3566d ago

PHP version history (3 changes)3.0.0-alpha1PHP &gt;=5.4.19

3.0.0-beta2PHP &gt;=5.4.16

3.2.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/56a5ca3dd7da4364725978f40104a667c8fd9bf40664b9886bbd19e2325517ee?d=identicon)[anhtuank7c](/maintainers/anhtuank7c)

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (1408 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (580 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (248 commits)")[![phpnut](https://avatars.githubusercontent.com/u/148097?v=4)](https://github.com/phpnut "phpnut (138 commits)")[![anhtuank7c](https://avatars.githubusercontent.com/u/3163410?v=4)](https://github.com/anhtuank7c "anhtuank7c (103 commits)")[![ceeram](https://avatars.githubusercontent.com/u/111448?v=4)](https://github.com/ceeram "ceeram (71 commits)")[![jrbasso](https://avatars.githubusercontent.com/u/26548?v=4)](https://github.com/jrbasso "jrbasso (70 commits)")[![AD7six](https://avatars.githubusercontent.com/u/33387?v=4)](https://github.com/AD7six "AD7six (69 commits)")[![predominant](https://avatars.githubusercontent.com/u/24568?v=4)](https://github.com/predominant "predominant (68 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (56 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (52 commits)")[![nateabele](https://avatars.githubusercontent.com/u/18288?v=4)](https://github.com/nateabele "nateabele (30 commits)")[![antograssiot](https://avatars.githubusercontent.com/u/4977112?v=4)](https://github.com/antograssiot "antograssiot (23 commits)")[![jippi](https://avatars.githubusercontent.com/u/22841?v=4)](https://github.com/jippi "jippi (22 commits)")[![rchavik](https://avatars.githubusercontent.com/u/39490?v=4)](https://github.com/rchavik "rchavik (20 commits)")[![ionas](https://avatars.githubusercontent.com/u/106845?v=4)](https://github.com/ionas "ionas (17 commits)")[![jperras](https://avatars.githubusercontent.com/u/20675?v=4)](https://github.com/jperras "jperras (17 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (13 commits)")[![andre-pdassis](https://avatars.githubusercontent.com/u/7216884?v=4)](https://github.com/andre-pdassis "andre-pdassis (12 commits)")[![Ivoz](https://avatars.githubusercontent.com/u/199266?v=4)](https://github.com/Ivoz "Ivoz (9 commits)")

### Embed Badge

![Health badge](/badges/crabstudio-app/health.svg)

```
[![Health](https://phpackages.com/badges/crabstudio-app/health.svg)](https://phpackages.com/packages/crabstudio-app)
```

###  Alternatives

[cakephp/app

CakePHP skeleton app

3831.7M1](/packages/cakephp-app)[bedita/manager

BEdita Manager - official admin webapp for BEdita4 API

131.0k](/packages/bedita-manager)[dereuromark/cakephp-translate

A CakePHP plugin for managing translations

1710.4k](/packages/dereuromark-cakephp-translate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
