Skip to content

I developed my own php engine for blog purpose that is easy to install, configure and use in production.

Notifications You must be signed in to change notification settings

Bolkun/php-blog-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bolkun

Nowadays there are a lot of CMS written in php. During my research I could not find the perfect one, which will cover all my needs. This project is simple coded and easy understood with minimum knowledge of programming languages. It has only features, which really useful and needed by the customer. That's why a great attention was paid for performance, speed and security. Easy to install, minimum changes by configuration and that's it!

Built With

Name Version
Google Chrome 87.0.4280.88
XAMPP 7.2.31
PHP 7.3.8 - 8
PHPUnit 8.5.0
MySQL 5.7
jQuery 3.5.1
TinyMCE 5.4.1
Bootstrap 4.5.2

Product

  • Started: 16.01.2020
  • Author: Serhiy Bolkun
  • Architecture: MVC
  • Hosted: bolkun.great-site.net
  • Made in Germany

Development

  • Install XAMPP to test locally
    • Configure mailer
      • Open C:\xampp\php\php.ini
        • Set sendmail_path="C:\xampp\sendmail\sendmail.exe -t"
      • Open C:\xampp\sendmail\sendmail.ini
        • Set smtp_server=smtp.gmail.com
        • Set smtp_port=587
        • Set your own gmail address auth_username=mustermann@gmail.com
        • Set your own gmail password auth_password=123
    • Check other php.ini configurations
      • file_uploads=On
      • upload_max_filesize=40M
    • Configure mysql
      • Open C:\xampp\mysql\bin\my.ini
        • Set max_allowed_packet=4G or smaller, used in mysql table "blog" to store longblob format in column "content"
    • Restart XAMPP
  • Install Git and clone project with (git clone https://github.com/Bolkun/bolkun.git) to C:\xampp\htdocs
  • Open Google Chrome and go to phpMyAdmin
  • Create new database with name bolkun and charset utf8_general_ci
  • Open file bolkun/app/development/bolkun.sql and set time_zone (default Berlin). Copy content of the file and execute it in phpMyAdmin
  • Open link bolkun and process the registration form
  • Open phpMyAdmin and set in table user column role=Admin to give admin privilege to your account
  • You are ready to login and run the tests

Running The Tests

In this project was used "Test Automation Pyramid". It consists of three parts:

  1. UI
  2. Integration
    1. Log in as an admin to bolkun
    2. Click Link Benchmark
  3. Unit
    1. Open terminal and navigate to bolkun/app/phpunit
    2. Run ./vendor/bin/phpunit .\tests

Deployment

  • Check server configuration like in Development XAMPP
  • Create new database with name bolkun and charset utf8_general_ci
  • Open file bolkun/app/development/bolkun.sql and set time_zone (default Berlin). Copy content of the file and execute it in phpMyAdmin
  • Copy project to server
    • Open bolkun/app/config/config.php and go through comments with *
      • pass*
      • url root*
  • Open project link and process the registration form
    • If fails, than configure mail sender on your host
  • Test creating new article
    • test uploading local image

Database migration

  • Export in utf-8 file.sql
  • Open Notepad++ tab Encoding click ANSI
  • Copy content of a file and paste it in phpMyAdmin tab SQL
  • Run the process
  • Now chars like äöüß in main menu title will properly set

Versioning

New versions will be stored at GIT and can be only available after purchasing a new license.

Commercial License

  • Licenses are purchased by interested individuals or the company and can be used by any single person within this organization.
  • You can’t re-sell or re-distribute this project.

About

I developed my own php engine for blog purpose that is easy to install, configure and use in production.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published