zemit-cms / core
Zemit CMS Core
Fund package maintenance!
jturbide
Installs: 3 270
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 5
Forks: 3
Open Issues: 2
Requires
- php: >=8.2
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
- ext-phalcon: >=5.6
- ext-psr: *
- ext-sodium: *
- docopt/docopt: ^1.0
- league/flysystem: ^3.23
- league/fractal: ^0.20.1
- phalcon/cphalcon: ^5.6
- phalcon/devtools: ~5.0
- phalcon/incubator-mailer: ^2.0
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- ext-apcu: *
- ext-bcmath: *
- ext-gd: *
- ext-imap: *
- ext-redis: *
- ext-simplexml: *
- ext-sockets: *
- ext-zend-opcache: *
- aws/aws-sdk-php: ^3.300
- google/recaptcha: ^1.3
- joshtronic/php-loremipsum: ^2.1
- league/csv: ^9.15
- league/oauth2-client: ^2.7
- league/oauth2-facebook: ^2.2
- league/oauth2-github: ^3.1
- league/oauth2-google: ^4.0
- league/oauth2-instagram: ^3.1
- league/oauth2-linkedin: ^5.1
- mustache/mustache: ^2.14
- orhanerday/open-ai: ^5.1
- pds/skeleton: ^1.0
- phalcon/ide-stubs: ^5.6
- php-imap/php-imap: ^5.0
- phpspec/phpspec: ^7.5
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
- shuchkin/simplexlsxgen: ^1.4
- smarty/smarty: ^4.4
- spatie/array-to-xml: ^3.2
- squizlabs/php_codesniffer: ^3.9
- thiagoalessio/tesseract_ocr: ^2.13
- twig/twig: ^3.8
- xenolope/quahog: ^3.0
Suggests
- ext-apcu: *
- ext-bcmath: *
- ext-gd: *
- ext-imap: *
- ext-redis: *
- ext-simplexml: *
- ext-sockets: *
- ext-zend-opcache: *
- aws/aws-sdk-php: ^3.300
- google/recaptcha: ^1.3
- joshtronic/php-loremipsum: ^2.1
- league/csv: ^9.15
- league/oauth2-client: ^2.7
- league/oauth2-facebook: ^2.2
- league/oauth2-github: ^3.1
- league/oauth2-google: ^4.0
- league/oauth2-instagram: ^3.1
- league/oauth2-linkedin: ^5.1
- mustache/mustache: ^2.14
- orhanerday/open-ai: ^5.1
- php-imap/php-imap: ^5.0
- shuchkin/simplexlsxgen: ^1.4
- smarty/smarty: ^4.4
- spatie/array-to-xml: ^3.2
- thiagoalessio/tesseract_ocr: ^2.13
- twig/twig: ^3.8
- xenolope/quahog: ^3.0
- dev-master
- 1.0.x-dev
- 0.4.x-dev
- 0.4.0
- 0.2.3
- 0.1.33
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-dependabot/composer/smarty/smarty-tw-4.4or-tw-5.0
- dev-phalcon5
- dev-model-rest-refactor
This package is auto-updated.
Last update: 2024-03-25 18:17:12 UTC
README
Zemit Core is an open source headless CMS built on top of Phalcon, an open source web framework delivered as a C extension for the PHP language providing high performance and lower resource consumption
Contents
Getting Started
Zemit is using the Phalcon Framework. You can use composer in order to add Zemit core to an existing project. If you want to create a new project from scratch, we invite you to visit the Zemit App repository for more informations.
composer require zemit-cms/core
If you want to play around directly with the core, you can create a new project from itself and follow the configuration below.
composer create-project zemit-cms/core <your_project_name>
Configuration
Add the database config, note that we use dotenv to load the .env config. Simply add .env file to the root of your project.
# Database DATABASE_HOST=<your_db_host> DATABASE_DBNAME=<your_db_schema> DATABASE_USERNAME=<your_db_username> DATABASE_PASSWORD=<your_password>
Initialize Database
We are using phalcon cli to run & generate database migration.
./vendor/bin/phalcon migration run --config=./src/Config/Migration.php --directory=./ --migrations=./src/Migrations/ --no-auto-increment --force --verbose --log-in-db
Serve Application
To use Web MVC modules of Zemit Core locally, you can use PHP's built-in web server, note that this web server is designed to aid application development. It may also be useful for testing purposes or for application demonstrations that are run in controlled environments. It is not intended to be a full-featured web server.
php -S 0.0.0.0:8000 /public/index.php
You should now be able to access Zemit Core Frontend module from http://localhost:8000
This web server runs only one single-threaded process, so PHP applications will stall if a request is blocked. For more information about the CLI SAPI built-in web server, refer to the official documentation: https://www.php.net/manual/en/features.commandline.webserver.php
Full-featured Web Server
If you want to expose the application to the public world wide web, you can use apache or nginx to serve this purpose securely. You will need a Web server service to point to the /public/ folder of your new project. Here is virtual host example using apache 2.4 + php-fpm 7.4 from remi repository on Centos Stream.
<VirtualHost *:80> ServerName core.zemit.com ServerAlias www.core.zemit.com DocumentRoot /mnt/hgfs/dev/zemit/core/public/ <Directory /mnt/hgfs/dev/zemit/core/public/> Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> <FilesMatch \.(php|phar)$> SetHandler "proxy:unix:/var/opt/remi/php74/run/php-fpm/www.sock|fcgi://localhost" </FilesMatch> </VirtualHost> <VirtualHost *:443> ServerName core.zemit.com ServerAlias www.core.zemit.com DocumentRoot /mnt/hgfs/dev/zemit/core/public/ <Directory /mnt/hgfs/dev/zemit/core/public/> Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> <FilesMatch \.(php|phar)$> SetHandler "proxy:unix:/var/opt/remi/php74/run/php-fpm/www.sock|fcgi://localhost" </FilesMatch> SetEnv HTTPS on SetEnv HTTP_X_FORWARDED_PROTO https </VirtualHost>
Requirements
Zemit Core requires multiple PHP extensions including PhalconPHP. Please use composer
to make sure that you meet the requirements.
Languages & compatibilities
- PHP >=8.2
- MySQL >=8.0
- PhalconPHP >=5.6.2
External Links
Contributing
See CONTRIBUTING.md for details.
License
Zemit is open source software licensed under the BSD 3-Clause License.
Copyright © 2017-present, Zemit Team.
See the LICENSE.txt file for more.