TypiCMS is a multilingual content management system build with Laravel 4.2.
Bower and gulp are used for assets management and user interface is build with Bootstrap 3 with Less.
Demo
- Back-end (login:
[email protected]
, password:admin
) - Front-end
This kind of urls are managed by the CMS :
Modules:
- /en/events/slug-in-english
- /fr/evenements/slug-en-francais
Pages:
- /en/parent-pages-slug-en/subpage-slug-en/page-slug-en
- /fr/parent-pages-slug-fr/subpage-slug-fr/page-slug-fr
- Gulp
- Bower
- Bootstrap 3
- PHP >= 5.4.0
- MCrypt PHP Extension
- Memcached or APC
- Download TypiCMS
git clone git://github.com/sdebacker/TypiCMS.git mywebsite
- Enter newly created folder
cd mywebsite
- Install dependencies with Composer :
composer install
- Fill in your MySQL credentials in env.local.php
- Rename env.local.php to .env.local.php :
mv env.local.php .env.local.php
- Create a new database with the name filled in .env.local.php
- Migrate and seed Database :
php artisan migrate --seed
- Set permissions
chmod -R 777 app/storage
andchmod -R 777 public/uploads
- Go to http://mywebsite.local/admin and log in with [email protected] as email and admin as password.
You need to install Node.js, Bower and gulp, then cd to your website folder and run these commands:
- Install bower packages (in app/assets/components):
bower install
- Install Gulp packages:
npm install
- Set available locale and default locale in app/config/app.php
- Set a new encryption key manually or with
php artisan key:generate
- Change cache prefix in app/config/cache.php
- Cache driver is set to memcached, you can change it to apc in app/config/cache.php
Pages are nestable with drag and drop, on drop, uris are generated and saved in database. A page has routes for each translation.
Each menu have nestable entries. One entry can be linked to a module, page, URI or URL.
Projects have categories, projects urls follows this pattern : /en/projects/category-slug/project-slug
Categories has many projects.
Tags are linked to projects and use Select2 js plugin.
It has many to many polymorphic relations so it could easily be linked to other modules.
Events have starting and ending dates
Simple news module
Frontend contact form and admin side records management
Files module allows you to upload multiple files linked to a resource. It uses DropzoneJS.
Thumbnails are generated on the fly with Croppa.
Sentry 2 is used to manage users, groups and permissions.
Users registration can be enable through the settings panel (/admin/settings).
Translations can be store in database through the admin panel (/admin/translations).
Each cell of the translation table is editable in place.
You can call DB translation everywhere with Lang::get('db.Key')
, trans('db.Key')
or @lang('db.Key')
.
Change website title, and other options trough the settings panel. Settings are saved in database.
Five modules have their own Facade: News, Events, Projects, Places and Menus.
In your views, you can call for example News::latest(3)
to get the three latest news.
Check available methods in each module's repository.
- Improve user interface
- Make modules as packages
- Build more tests
Feel free to fork and pull request !
TypiCMS follows PSR-2 standard.
TypiCMS needs improvements, some features are not yet implemented.
Some admin controllers are actually tested, more tests needed.
TypiCMS is open-sourced software licensed under the MIT license.