Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/workofstan/seablast-dist
Distribution of Seablast for PHP - a seed application
https://github.com/workofstan/seablast-dist
Last synced: about 9 hours ago
JSON representation
Distribution of Seablast for PHP - a seed application
- Host: GitHub
- URL: https://github.com/workofstan/seablast-dist
- Owner: WorkOfStan
- License: mit
- Created: 2023-07-04T03:01:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T20:27:24.000Z (24 days ago)
- Last Synced: 2024-10-22T14:38:53.346Z (23 days ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# seablast-dist
Distribution of a seed application for `Seablast for PHP`## Deployment
Create database with `Collation=utf8_general_ci` (create also separate testing database so that phinxlog migration_name doesn't overlap)Run [assemble.sh](assemble.sh) to
- create `conf/phinx.local.php` based on [conf/phinx.dist.php](conf/phinx.dist.php) including the name of the database (and testing database) created above
- create `conf/app.conf.local.php` based on [conf/app.conf.dist.php](conf/app.conf.dist.php) including the phinx environment to be used and change any settings you like. (OPTIONAL)Edit these two configuration files; then re-run assemble.sh
Note: the current configuration is in the `conf/phinx.local.php` so that it is automatically NOT commited to git
### Folders, where web can write
- cache and log (and also e.g. app specific uploads)
- rights: 2775
- owner: server user, e.g. composerit
- group: web user, e.g. www-data
- run [permissions.sh](permissions.sh) to set up these permissions
- upload_max_filesize in php.ini set to 8M### Security
- enforcing HTTP to HTTPS MUST happen on the server-side, e.g. like this in `/etc/apache2/sites-enabled/www.plysonika.cz.conf`
```htaccessRewriteEngine On
RewriteCond %{REQUEST_URI} !^/server-status.*
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
```## Examples
- try /redir to see how it is redirected to /kontakt
- try /use-mirror to see how API call works## App directory description
| Directory | Description |
|-----|------|
| .github/ | Automations |
| assets/ | Frontend assets. When dealing with numerous assets, categorize them into specific subdirectories. |
| cache/ | Latte cache |
| conf/ | All configuration files: Seablast app, PHPStan, phinx |
| log/ | All kind of logs |
| models/ | If not all classes are models, change it to src/Models, src/Data, src/Exceptions... |
| views/ | Latte templates |