openpsa / midcom
Content-oriented Model-View-Controller framework for PHP
Installs: 3 085
Dependents: 6
Suggesters: 0
Security: 0
Stars: 29
Watchers: 7
Forks: 18
Open Issues: 22
Type:midcom-package
Requires
- php: >=7.4
- ext-iconv: *
- ext-mbstring: *
- checkdomain/holiday: ^3.0.0
- cocur/slugify: ^4.0
- gregwar/captcha: ^1.0
- guzzlehttp/guzzle: ^7.2
- mf2/mf2: >=0.2.12
- michelf/php-markdown: ^1.9.0
- monolog/monolog: ^1.15 || ^2.0
- openpsa/installer: ^1.0
- openpsa/midgard-portable: ^1.10.0
- openpsa/ranger: >=0.3.0
- openpsa/universalfeedcreator: ^1.8.2
- phpspec/php-diff: ^1.1.0
- sabre/vobject: ^4.3.0
- simplepie/simplepie: ^1.7.0
- studio-42/elfinder: >=2.1.59
- symfony/cache: >=5.4
- symfony/config: >=5.4 <7.0
- symfony/console: >=5.4
- symfony/css-selector: >=5.4
- symfony/dependency-injection: >=5.4 <6.0
- symfony/dom-crawler: >=5.4
- symfony/event-dispatcher: >=5.4
- symfony/finder: >=5.4
- symfony/form: >=5.4 <6.0
- symfony/http-foundation: >=5.4 <6.0
- symfony/http-kernel: >=5.4 <6.0
- symfony/intl: >=5.4
- symfony/mailer: >=5.4
- symfony/mime: >=5.4.11
- symfony/options-resolver: >=5.4
- symfony/polyfill-php80: >=1.16
- symfony/routing: >=5.4
- symfony/security-csrf: >=5.4 <6.0
- symfony/translation: >=5.4
- symfony/validator: >=5.4
- symfony/var-dumper: >=5.4
- symfony/yaml: >=5.4
Requires (Dev)
- phpunit/phpunit: ^9.5.10
Suggests
- ext-memcached: *
- ezyang/htmlpurifier: ^4.7
Provides
Conflicts
- cocur/slugify: 4.5.0
This package is auto-updated.
Last update: 2024-10-23 12:33:18 UTC
README
OpenPSA is a management suite for web agencies and consultants that provides a unified interface for handling many common business processes. It is built on a component architecture that makes it easy to integrate new components for specific requirements and is available as free software under the terms of the LGPL license.
OpenPSA 1.x was initially released as Open Source under the GNU GPL license by Nemein on May 8th 2004 to support the 5th anniversary of the Midgard Project. The package was originally known as Nemein.Net.
The currently active branch (OpenPSA 9) is developed and supported by CONTENT CONTROL.
Read more in http://openpsa2.org/
Setup
You can either clone this repo or add openpsa/midcom
to your composer.json
Then, change to your project's root dir and use Composer to install PHP dependencies
$ wget http://getcomposer.org/installer && php installer
$ php composer.phar install
This will setup the project directory for OpenPSA usage. Next you should make OpenPSA available under your document root:
$ ln -s web /var/www/yourdomain
You can then create new database by running:
$ ./vendor/bin/openpsa-installer midgard2:setup
This will also create a default user with admin
/password
which you can later use to access the admin interface. See the openpsa-installer documentation for more details.
Setting up Apache
Make sure that you have mod_rewrite enabled:
a2enmod rewrite
And use something like this in your vhost config (or .htaccess file):
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /openpsa/rootfile.php [QSA,L]
Setting up Lighttpd
Alternatively, you can also run under lighttpd (or any other web server, for that matter). Enable rewrite
and fastcgi
modules in your Lighttpd config (by default /etc/lighttpd/lighttpd.conf
):
server.modules += (
"mod_fastcgi",
"mod_rewrite"
)
Also enable FastCGI to talk to your PHP installation:
fastcgi.server = (
".php" => (
(
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)
)
)
Then just configure your Lighttpd to pass all requests to the OpenPSA "rootfile":
url.rewrite-once = (
"^/openpsa2-static/OpenPsa2/(.*)$" => "/openpsa/themes/OpenPsa2/static/$1",
"^/openpsa2-static/(.*)$" => "/openpsa/static/$1",
"^([^\?]*)(\?(.+))?$" => "openpsa/rootfile.php$2"
)
Note: this rewrite rule is a bit too inclusive, to be improved.