sdebacker / typicms
Multilingual CMS built with Laravel 4.2
Installs: 2 499
Dependents: 0
Suggesters: 0
Security: 0
Stars: 482
Watchers: 62
Forks: 127
Open Issues: 11
Requires
- barryvdh/laravel-debugbar: ~1.8.5
- bkwld/croppa: 3.4.2
- cartalyst/sentry: ~2.1.4
- cviebrock/image-validator: ~1.0.4
- davejamesmiller/laravel-breadcrumbs: ~2.2.3
- dimsav/laravel-translatable: ~4.3.2
- edvinaskrucas/notification: ~3.0
- eluceo/ical: ~0.6
- guzzlehttp/guzzle: ~4.2.3
- heybigname/backup-manager: ~0.3
- jenssegers/rollbar: ~1.3
- jwage/easy-csv: ~0.0.2
- laracasts/utilities: ~1.0
- laravel/framework: ~4.2.16
- msurguy/honeypot: ~0.2
- roumen/sitemap: ~2.4.15
- thomaswelton/laravel-gravatar: ~0.1
- vlucas/phpdotenv: ~1.0
Requires (Dev)
- mockery/mockery: ~0.9.2
- phpspec/phpspec: ~2.0
- raveren/kint: ~0.9.1
- way/generators: ~2.0
- dev-master
- v1.7.23
- v1.7.22
- v1.7.21
- v1.7.20
- v1.7.19
- v1.7.18
- v1.7.17
- v1.7.16
- v1.7.15
- v1.7.14
- v1.7.13
- v1.7.12
- v1.7.11
- v1.7.10
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.0
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.0.0
This package is auto-updated.
Last update: 2021-10-22 07:04:13 UTC
README
This repository is deprecated, please use the latest TypiCMS.
TypiCMS for Laravel 4.2
TypiCMS is a multilingual content management system built with Laravel 4.2. Bower and gulp are used for asset management and the user interface is built with Bootstrap 3 with Less.
Table of contents
- Features
- Requirements
- Installation
- Modules
- Facades
- Artisan commands
- Roadmap
- Contributing
- Testing
- Licence
Features
URLs
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
Requirements
- PHP >= 5.4.0
- MCrypt PHP Extension
- Memcached or Redis or APC
Installation
Quick installation
-
Create an empty MySQL database
-
Create a new project
composer create-project sdebacker/typicms mywebsite
-
Enter the newly created folder
cd mywebsite
-
DB migration and seed, user creation, npm installation, bower installation and directory rights
php artisan typicms:install
-
Go to http://mywebsite.local/admin and log in.
Manual installation
-
Create an empty database
-
Download TypiCMS
git clone https://github.com/sdebacker/TypiCMS.git mywebsite
-
Enter the newly created folder
cd mywebsite
-
Install dependencies with Composer
composer install
-
Set a new encryption key
php artisan key:generate
-
Change the cache prefix in app/config/cache.php
php artisan cache:prefix yourCachePrefix
-
Rename .env.example to .env
mv .env.example .env
-
Fill in your database credentials in .env
-
Migrate and seed the database
php artisan migrate --seed
-
Set permissions
chmod -R 777 app/storage chmod -R 777 public/uploads
-
Go to http://mywebsite.local/admin and log in:
- email:
admin@example.com
- password:
admin
Bower & Gulp
In order to work on assets, you need to install Node.js, Bower and gulp, then cd to your website folder and run these commands:
-
Install bower packages according to bower.json (directory app/assets/components)
bower install
-
Install gulp packages according to gulpfile.js (directory node_modules)
npm install
-
Compile admin and public assets
gulp
Configuration
- Set available locales and the default locale in app/config/app.php
- Cache driver is set to memcached. You can change it to another taggable cache system such as redis in app/config/cache.php
Modules
Pages
Pages are nestable with drag and drop, on drop, URIs are generated and saved in the database. A page has routes for each translation.
Menus
Each menu has nestable entries. One entry can be linked to a module, page, URI or URL.
You can get a HTML formated menu with Menus::build('menuname')
.
An icon can easily be added to a menu item by filling the icon class field.
Projects
Projects have categories, projects URLs follows this pattern: /en/projects/category-slug/project-slug
Categories
Categories have many projects.
Tags
Tags are linked to projects and use the Selectize jQuery plugin. The tags moudle has many to many polymorphic relations so it could easily be linked to other modules.
Events
Events have starting and ending dates.
News
Simple news module with linked files/images galleries.
Contacts
Frontend contact form and admin side records management.
Partners
A partner has a logo, website URL, title and body content.
Files
The files module allows you to upload multiple files. It uses DropzoneJS to upload them. Thumbnails are generated on the fly with Croppa.
Galleries
You can create as many galleries as you want, each gallery has many files. Galleries are linkable to any module item through a polymorphic many to many relation, for now only the news module is properly set up to support galleries.
Users and groups
Sentry 2 is used to manage users, groups and permissions. User registration can be enabled through the settings panel (/admin/settings).
Blocks
Blocks are useful to display custom content in your views.
You can get the content of a block with Blocks::build('blockname')
.
Translations
Translations can be stored in the database through the admin panel (/admin/translations).
You can call DB translation everywhere with Lang::get('db.Key')
, trans('db.Key')
or @lang('db.Key')
.
Sitemap
Route sitemap.xml generates a sitemap file in XML format. To add modules to the site map configure app/config/sitemap.php.
Settings
Change website title, and other options trough the settings panel. Settings are saved in the database.
History
History table records changes and 25 latest records are displayed in the back office’s dashboard. Logged actions are created, updated, deleted, set online and set offline. It works for all modules except users and groups.
Facades
Modules that have their own Facade: News, Events, Projects, Places, Partners, Galleries, Blocks, Files 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.
Artisan commands
Commands are located in app/TypiCMS/Commands
-
Initialisation of TypiCMS
php artisan typicms:install
-
Set cache key prefix in app/config/cache.php
php artisan cache:prefix yourCachePrefix
-
Initial migration and seed
php artisan typicms:database
Roadmap
- Improve user interface
- Implement modules as packages
- Build more tests
Contributing
Feel free to fork and make pull requests directly on the master branch! TypiCMS follows the PSR-2 standard.
Thanks to elvendor and jekjek for their contributions!
Testing
Some admin controllers are actually tested, more tests needed.
License
TypiCMS is an open-source software licensed under the MIT license.