surebert / framework
An all purpose PHP 7 MVC framework
Requires
- php: ^8.5
Requires (Dev)
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^13
- rector/rector: ^2.6
Suggests
- ext-PDO: Required to use the Surebert PDO helper classes in \sb\PDO
- ext-SimpleXML: Required to use the NOAA weather.gov weather loader (\sb\Web\Weather) and the XMPP client
- ext-ctype: Suggested to use the numeric validation helpers in \sb\Validate\Numbers and the GitLab client ID checks
- ext-curl: Required for all HTTP/HTTPS communication, incl. \sb\CURL, \sb\REST\Client, \sb\Gitlab\Client and \sb\Email\Exchange
- ext-dom: Required to build ePUB files (\sb\Ebook), write Excel workbooks (\sb\Excel\Workbook) and use the XMPP client (\sb\XMPP)
- ext-fileinfo: Suggested for MIME type detection in \sb\Files
- ext-filter: Required to validate and sanitize emails and URLs in \sb\Validate and \sb\Email
- ext-ftp: Required to use the FTP client (\sb\FTP\Client)
- ext-gd: Required to edit and resize images (\sb\Image), render graphs (\sb\Graph) and generate CAPTCHAs (\sb\Web\Captcha)
- ext-gnupg: Suggested to PGP-encrypt email attachments (\sb\Email\Attachment::pgpEncrypt)
- ext-iconv: Suggested to use the .xls Excel parsing functions
- ext-imap: Required to read IMAP inboxes with \sb\Email\Reader. PECL only since PHP 8.4
- ext-mbstring: Required to use JSON-RPC 2, ePUB, TextBling and .xls/.xlsx parsing functions
- ext-memcached: Required to use the memcached cache driver (\sb\Cache\Memcached) and memcached sessions (\sb\Session\Memcached)
- ext-openssl: Required for ssl:// connections in the XMPP client (\sb\XMPP\Client)
- ext-session: Required to use the Surebert session storage helpers in \sb\Session
- ext-sodium: Required to encrypt JSON-RPC 2 traffic with \sb\Encryption\ForTransmission (useEncryption on \sb\JSON\RPC2\Client and \sb\Controller\JSON\RPC2\Server)
- ext-ssh2: Required to use the SSH2 and SFTP clients (\sb\SSH2, \sb\SFTP)
- ext-zip: Required to build ePUB files, send emails with attachments, and the \sb\Files\ForceDownload helper
- ext-zlib: Suggested to serve gzip-compressed responses from the JSON-RPC 2 server
- guzzlehttp/psr7: Suggested to convert \sb\Request to PSR-7 (toPsr7) and render PSR-7 responses in \sb\Gateway
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 4.0.0-beta.1
- v3.0.0
- 1.9.2
- 1.9.1
- dev-release/php85
- dev-79-prepare-release-of-surebert-framework-4
- dev-77-fix-null-passed-to-string-functions-and-invalid-array-offsets
- dev-70-fix-bugs-found-by-phpstan-levels-1-and-2
- dev-57-fix-phpdoc-types
- dev-71-migrate-memcache-to-memcached
- dev-11-replace-removed-mcrypt-extension-in-sb-encryption-fortransmission
- dev-69-fix-broken-sb-sftp-client-file-operations
- dev-68-fix-undefined-variables-and-missing-returns
- dev-66-fix-class-references-that-don-t-resolve
- dev-64-fix-remaining-php-8-4-8-5-runtime-deprecations
- dev-55-fix-dynamic-property-usage
- dev-62-fix-deprecations-raised-when-files-are-compiled-on-php-8-5
- dev-61-harden-toolkit-file-resolution-master
- dev-59-remove-unused-controller-http-proxy-master
- dev-59-remove-unused-controller-http-proxy
- dev-58-deprecated-functions
- dev-56-add-rector-to-project-to-speed-up-code-cleanup-and-refactoring
- dev-53-add-a-gitlab-ci-pipeline
- dev-52-add-phpstan-static-analysis
- dev-51-upgrade-framework-to-support-php-8-5
- dev-48-configurable-php-exe
- dev-44-php-8-getX-default-val
- dev-47-throw-404-exception-for-nonexistent-commandline-routes
- dev-46-finer-grained-commandline-controller-logdirs
- dev-45-switching-blank-email-to-default-to-empty-string-versus-null
- dev-paulvisco-master-patch-76752
- dev-44-enable-switch-of-getarg-getget-getpost-default-value-to-be-empty-string-instead-of-null
- dev-42-php-81-updates
- dev-43-add-support-for-webp-to-sb-image
- dev-php74-working
- dev-40-fix-php8-deprecation-warnings-in-email
- dev-39-remove-automagical-surebert-toolkit-loader
- dev-32-log-type-html-table-sort-error
- dev-38-php-8-1-updates
- dev-36-escape-args-to-samba-client-connection
- dev-33-remove-flash-and-flv-render-in-blingmedia
- dev-31-use-reply_to-property-in-the-sb-email-mailer-model
- dev-30-cache-filesystem-php-clearall-throws-excpetion-if-called-before-cache-exists
- dev-28-quote-commandline-request-arg
- dev-27-add-support-for-psr-7-responses-and-requests-via-guzzle
- dev-26-chained-commandline-controllers
- dev-25-fix-samba-conn-error-handling
- dev-24-update-email-validation-for-php-7-3
- dev-23-fix-issue-with-random-int-being-int-and-used-in-strstr-which-required-needle-of-sting
- dev-22-move-getget-getarg-to-sb-controller-base
- dev-21-allow-seekat-in-forcedownload
- dev-20-sanitize-from-header-with-sendmail
- dev-18-separate-json-rpc2-connection-and-transfer-timeouts
- dev-16-allow-column-names-with-limit-in-record-pager
- dev-17-switch-json-rpc2-client-to-use-curl
- dev-15-fix-issue-with-usersonline-script
- dev-14-email-force-blank-to-to-be-null
- dev-13-finfo-incorrectly-namespaced
- dev-12-update-json-rpc2-client-headers
- dev-11-remove-deprecated-mcrypt-extension
- dev-10-upgrade-salt-generator-for-sb-password-hash-to-not-use-mcrypt-by-default
- dev-9-change-json-server-controller-http-header-for-php-serialization
- dev-8-prevent-base64-re-encoding-of-attachments-on-send
- dev-7-trouble-loading-project-files-when-url-has-public-in-name
- dev-5-allow-override-over-sb-email-security-stamp-footer
- dev-6-add-dynamic-override-email-that-works-like-debug_email
- dev-4-recordpager-empty-object-default
- dev-3-json-rpc2-server-code-is-invalid-in-php7
This package is auto-updated.
Last update: 2026-11-30 13:59:56 UTC
README
Composer
Download composer in order to download the required dependencies.
Composer can be found at http://getcomposer.org/download/ OR you can download it using curl
curl -s https://getcomposer.org/installer | php
Then use composer to start a new surebert web project with the framework modules required.
composer create-project surebert/webapp-basic -s dev $YOUR_APPLICATION_NAME
Serving your project
Once they are installed you can begin working on your project. You will need to serve your applications /public directory. This can be done via apache on nginx in production but you can simply user php 5.4 new built in server for testing. To do so cd into the /public directory and type
cd /PATH/TO/YOUR/PROJECT/public
php -S 127.0.0.1:9000
Immediately you will see you projects /private/view/home/index.view file served.
If serving with apache add the site to your httpd.conf or httpd-vhosts.conf file
<VirtualHost *:80>
ServerName YOUR.DOMAIN
DocumentRoot /PATH/TO/$YOUR_APPLICATION_NAME/public
CustomLog /PATH/TO/$YOUR_APPLICATION_NAME_access.log combined
ErrorLog /PATH/TO/$YOUR_APPLICATION_NAME_error.log
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule .* index.php [L]
</VirtualHost>
For more information see the wiki on gitlab https://gitlab.com/paulvisco/surebert-framework/wikis/home