{"id":14966482,"url":"https://github.com/tanhongit/webapp_blog_yii_php","last_synced_at":"2026-02-23T07:41:24.229Z","repository":{"id":43474824,"uuid":"366656093","full_name":"tanhongit/Webapp_Blog_Yii_PHP","owner":"tanhongit","description":"It's a free e-commerce website project for everyone to use. It is built in Yii PHP Framework.","archived":false,"fork":false,"pushed_at":"2022-10-02T22:43:46.000Z","size":87198,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T09:41:51.452Z","etag":null,"topics":["php","php-framework","php-shop","tanhongit","tanhongit-mvc","webapp-yii","yii","yii-framework","yii-php-framework"],"latest_commit_sha":null,"homepage":"https://appyii.tanhongit.com/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanhongit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-12T09:07:03.000Z","updated_at":"2024-06-21T14:28:58.000Z","dependencies_parsed_at":"2023-01-19T00:45:48.135Z","dependency_job_id":null,"html_url":"https://github.com/tanhongit/Webapp_Blog_Yii_PHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanhongit%2FWebapp_Blog_Yii_PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanhongit%2FWebapp_Blog_Yii_PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanhongit%2FWebapp_Blog_Yii_PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanhongit%2FWebapp_Blog_Yii_PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanhongit","download_url":"https://codeload.github.com/tanhongit/Webapp_Blog_Yii_PHP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239114240,"owners_count":19583986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","php-framework","php-shop","tanhongit","tanhongit-mvc","webapp-yii","yii","yii-framework","yii-php-framework"],"created_at":"2024-09-24T13:36:27.480Z","updated_at":"2025-10-27T02:08:18.604Z","avatar_url":"https://github.com/tanhongit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Webapp Blog Yii PHP Framework \n\nIt's a free e-commerce website project for everyone to use. It is built in Yii PHP Framework.\n\n# 1. Configuration requirements\n\n    - Version PHP 7.2, 7.4\n    - OpenSSL PHP Extension\n\n# 2. Technology\n- PHP language (Yii PHP Framework)\n- Using MVC model\n- Javascript (Jquery, Bootstrap,...)\n\n# 3. Feature\n\n```text\n1. FRONT-END\n    - Shopping cart\n    - Save cart with database\n    - Customer login\n    - Content: Page, Post, Product List, Product Details, Category,...\n    - Product attributes: cost price, promotion price, detail,...\n    - Comment on Product, Post,...\n    - Search, pagination,...\n    - Checkout, PlaceOrder,...\n    ...\n\n=================================================================\n\n2. BACKEND-ADMIN\n    - Product manager   (Create, delete, update)\n    - Category manager  (Create, delete, update)\n    - Order management  (Create, delete, update)\n    - User management   (Create, delete, update)\n    ...\n```\n\n# 4. Edit Connect Database\n\nYou need to change the connection information to the database if you want to store and use data for the website.\n\nPath: [`/config/database.php`](https://github.com/tanhongit/Webapp_Blog_Yii_PHP/tree/main/protected/config)\n\nChange **host**, **dbname**, **username**, **password** to your database information.\n\n```php\nreturn array(\n    'connectionString' =\u003e 'mysql:host=localhost;dbname=webapp_blog_yii_php',\n    'emulatePrepare' =\u003e true,\n    'username' =\u003e 'root',\n    'password' =\u003e 'root',\n    'charset' =\u003e 'utf8',\n    'tablePrefix' =\u003e 'tbl_',\n);\n```\n\n# 5. Change SMTP Mail (phpmailer information)\n\n\u003eYou need to change the information about SMTP Mail to be able to use some functions about user account authentication, change passwords, notify users, ...\n\n1. Go to [`/protected/libs`](https://github.com/tanhongit/Webapp_Blog_Yii_PHP/tree/main/protected/libs)\n2. Create **setting_mail.php** file from **setting_mail_copy.php** file in the folder libs (copy setting_mail_copy.php to setting_mail.php)\n3. Change the information about SMTP Mail:\n\n```php\ndefine('SMTP_HOST','smtp.gmail.com');\ndefine('SMTP_PORT','465');\ndefine('SMTP_UNAME','add_your_mail');\ndefine('SMTP_PWORD','add_your_application_password_from_your_mail');\n```\n\nChange the value of the constant **SMTP_UNAME** and **SMTP_PWORD** to match the configuration you added on your Gmail.\n- add_your_mail: Your email address\n- add_your_application_password_from_your_mail: Get Your application password from your email\n\nTips: https://support.google.com/accounts/answer/185833?hl=en\n\n# 6. Install and using ssl certificate\n\nUsing **mkcert** to create ssl certificate\n\n### On Ubuntu\n\n```shell\nsudo apt install libnss3-tools\n\nsudo wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64 \u0026\u0026 \\\nsudo mv mkcert-v1.4.3-linux-amd64 mkcert \u0026\u0026 \\\nsudo chmod +x mkcert \u0026\u0026 \\\nsudo cp mkcert /usr/local/bin/\n```\n\nNow that the mkcert utility is installed, run the command below to generate and install your local CA:\n\n```shell\nmkcert -install\n```\n\n### Create ssl certificate for this project\n\nRun:\n\n```shell\ncd /var/www/certs\nmkcert local.webapp_blog_yii_php.com\n```\n\n### Update configuration\n\nChange **local.webapp_blog_yii_php.com.conf** file (/apache2/sites-available/ to this)\n\n```textmate\n\u003cVirtualHost *:80\u003e\n\tServerAdmin localserver@localhost\n\tServerName local.webapp_blog_yii_php.com\n\tServerAlias www.webapp_blog_yii_php.vdx.com\n\tDocumentRoot /var/www/webapp_blog_yii_php\n\tErrorLog /var/www/logs/error-webapp_blog_yii_php.log\n    CustomLog /var/www/logs/access-webapp_blog_yii_php.log combined\n\u003c/VirtualHost\u003e\n\n\u003cVirtualHost *:443\u003e\n    ServerAdmin localserver@localhost\n    ServerName local.webapp_blog_yii_php.com\n    ServerAlias www.local.webapp_blog_yii_php.com\n    DocumentRoot /var/www/webapp_blog_yii_php\n\n    ErrorLog /var/www/logs/error-webapp_blog_yii_php.log\n    CustomLog /var/www/logs/access-webapp_blog_yii_php.log combined\n\n    SSLEngine on\n\tSSLCertificateFile /var/www/certs/local.webapp_blog_yii_php.com.pem\n\tSSLCertificateKeyFile /var/www/certs/local.webapp_blog_yii_php.com-key.pem\n\n    \u003cDirectory /var/www/webapp_blog_yii_php\u003e\n        Options Indexes FollowSymLinks\n        AllowOverride All\n        Require all granted\n    \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\n# Demo\n\nWhen done, you can test the website by opening the browser and typing the following URL:\n\nAdmin account:\n```text\nusername: admin\npassword: admin\n```\n\nFrontend some demo URLs:\n```text\nAPP_URL/category/list/2\nAPP_URL/contact\nAPP_URL/product/list/2\nAPP_URL/post/view/post-1\n...\n```\n\nBackend Admin Manager URLs:\n```text\nAPP_URL/admin/slug/\nAPP_URL/admin/product/\nAPP_URL/admin/post/\nAPP_URL/admin/category/\nAPP_URL/admin/tag/\n```\n\n![2022-07-09_100848](https://user-images.githubusercontent.com/35853002/178089397-909c5dff-f45b-422d-a53d-59975bfc4c8d.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanhongit%2Fwebapp_blog_yii_php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanhongit%2Fwebapp_blog_yii_php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanhongit%2Fwebapp_blog_yii_php/lists"}