{"id":22048938,"url":"https://github.com/schnoog/phpboilerplate","last_synced_at":"2025-05-08T23:06:24.374Z","repository":{"id":57048066,"uuid":"115736307","full_name":"schnoog/PHPBoilerPlate","owner":"schnoog","description":"A boilerplate for php webapps, without the need to go object orientated for every single step (using f.e. smarty , gettext i18n  , bootstrap 4 , jQuery Validation )","archived":false,"fork":false,"pushed_at":"2022-10-30T12:20:14.000Z","size":3450,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T23:06:09.099Z","etag":null,"topics":["bootstrap","composer","i18n","mysql","php","php-applications","php-boilerplate","skeleton","skeleton-application","smarty-template-engine"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schnoog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-29T16:11:08.000Z","updated_at":"2024-08-03T23:11:13.000Z","dependencies_parsed_at":"2022-08-23T17:50:22.322Z","dependency_job_id":null,"html_url":"https://github.com/schnoog/PHPBoilerPlate","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnoog%2FPHPBoilerPlate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnoog%2FPHPBoilerPlate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnoog%2FPHPBoilerPlate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schnoog%2FPHPBoilerPlate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schnoog","download_url":"https://codeload.github.com/schnoog/PHPBoilerPlate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160777,"owners_count":21863629,"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":["bootstrap","composer","i18n","mysql","php","php-applications","php-boilerplate","skeleton","skeleton-application","smarty-template-engine"],"created_at":"2024-11-30T14:13:46.902Z","updated_at":"2025-05-08T23:06:24.349Z","avatar_url":"https://github.com/schnoog.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PHPBoilerPlate\n\n## What's that?\nA boilerplate for php webapps, without the need to go object orientated for every single step.\n\n### It includes\n- User registration\n- User management\n- OAuth implementation\n- Cookie and Session Management\n- Multilanguage support (i18n, gettext. Supplied languages: en_GB \u0026 de_DE)\n- XSS and CSRF protection\n- Easy routing\n- Input validation in jQuery and php (with an interface function)\n- Growing documentation (within base installation)\n- Page generation (you decide if the new created page is automatically created with an ajax backend)\n- ACL for pages and navigation tree entries\n\n### The following libraries and plugins are used:\n- delight-im/PHP-Auth -- PHP-Auth (https://github.com/delight-im/PHP-Auth |MIT License)\n- phpmailer/phpmailer -- PHPMailer (https://github.com/phpmailer/phpmailer |GNU Lesser General Public License v2.1)\n- sergeytsalkov/meekrodb/ -- MeekroDB (https://github.com/SergeyTsalkov/meekrodb/ |GNU Lesser General Public License v3.0)\n- smarty/smarty -- Smarty Template Engine (https://github.com/smarty-php/smarty |GNU Lesser General Public License v2.1 (or later))\n- Bootstrap4 -- Bootstrap 4 (https://getbootstrap.com |MIT license)\n- bootstrap-4-multi-dropdown-navbar -- Bootstrap4 Multi Dropdown Navbar (https://github.com/bootstrapthemesco/bootstrap-4-multi-dropdown-navbar/ |GPL license)\n- cookieconsent -- Cookie Consent (https://cookieconsent.insites.com |MIT License)\n- nestable-fork -- Nestable (https://github.com/ozdemirburak/nestable-fork |BSD \u0026 MIT license)\n- datatables -- DataTables Table plug-in for jQuery (https://datatables.net/ |MIT license)\n- summernote/summernote -- wysiwyg rich text editor for Bootstrap (https://github.com/summernote/summernote/ |MIT License)\n- anti-xss -- anti-xss (https://github.com/voku/anti-xss |MIT license)\n- werx/validation -- werx/validation (https://github.com/werx/validation |MIT License)\n- jQuery Form Validator -- formvalidator.net (http://www.formvalidator.net |MIT License)\n- Hybridauth -- Hybridauth 3.0 (https://hybridauth.github.io |MIT License)\n- fontawesome -- Font Awesome (http://fontawesome.io/ |MIT License \u0026 SIL OFL 1.1)\n\n## Requirements\n- A webserver capable to run php (with intl extension, PHP 7.1+, PDO extension , OpenSSL extension)\n- A MySQL database server (MySQL 5.5.3+ or MariaDB 5.5.23+)\n- To use internationalisation, you may need to run locale-gen on your linux server\n- composer\n\n## Prerequisites\n- You need the login data to an empty mysql database\n- You need the login data to an email server\n\n## Installation\nThe installation directory should not be web accessible. Only the public folder needs to be web readable.\n\nI suggest to install this boilerplate over composer.\nThis will ensure random salts are defined for the hashing functions.\n\n### Install with composer\nTo install the boilerplate, run this within the target directory\n```\ncomposer create-project schnoog/boilerplate . dev-master\n```\nor set a target directory\n```\ncomposer create-project schnoog/boilerplate targetdir dev-master\n```\n### Installation with git or Download\n- Open the console and change the directory to the target directory, where you want to create the checkout\n\n#### Get the files\n```\ngit clone https://github.com/schnoog/PHPBoilerPlate.git .\n```\nor download the package and unzip it\n```\nhttps://github.com/schnoog/PHPBoilerPlate/archive/master.zip\n```\n#### Create the configuration\nThis can be done by a little helper script\n```\nphp ./appconsole create\n```\nor by hand\ncopy the distributed example\n```\ncp app/config/main_config.php.dist app/config/main_config.php\n```\nreplace SECSALT1 and SECSALT2 with random strings by hand.\n\n## Configuration\nPlease adjust the settings in\n```\napp/config/main_config.php\n```\nto match your needings.\n## Initialization\nNow you need to populate the database.\nThis can be done by a little helper script\n```\nphp ./appconsole db\n```\nor by importing each NUM_xxxx.sql file within app/SETUP/\n(starting from 001_....)\n```\nmysql DATABASE \u003c app/SETUP/001_UserTables.sql\nmysql DATABASE \u003c app/SETUP/002_PageStructure.sql\n...\n...\n```\n\n## Done\nYou should now be able to access the system.\nThe administrator login is\nUsername: **test@test.de**\nPassword: **1234abcd**\n\n## Updates\nI suggest to use the \"php ./appconsole db\" to install and update the database.\nThis will set a database version tag to be able to update the database without dataloss in later releases.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschnoog%2Fphpboilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschnoog%2Fphpboilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschnoog%2Fphpboilerplate/lists"}