views:

299

answers:

3

I've just released a PHP framework called EuropaPHP (http://europaphp.org/). I was wondering if I could get some feedback from of you guys whatever it may be. Let me know what you like about it, what you don't like about it; whatever.

It's based on similar coding conventions to that of the Zend Framework and as a result, the Zend Framework can be dropped into Europa.

The aim was to create an extremely lightweight and fast MVC framework with a simple and intuitive API. You can customize it in nearly any way possible, but good defaults were chosen so you can just unzip it and start coding.

TIA.

+2  A: 

Consider the spl registry for establishing an autoload function instead of using __autoload. This would make your framework play nice with other framework's autoload mechanism. (Take a look at SwiftMailer's autoload function for ideas)

Mario
Thanks for that. spl_autoload is actually in the works, and I will be allowing it to fall back to __autoload if spl isn't in the PHP build.
Tres
+1  A: 

On this page:

Create an .htaccess file in the same directory as your lib directory and put the following in it:

RewriteEngine On
RewriteRule ^.*$ index.php

How do you approach serving static files (e.g. images, css, js) if everything is routed through index.php?

Tom Haigh
The .htaccess file is a sample one, as with the index.php file. If you wanted to allow directory/file access you could use:RewriteCond %{REQUEST_FILENAME} !-f andRewriteCond %{REQUEST_FILENAME} !-d. However, this allows you the flexibility of routes so you could use a controller to set cache headers, compile javascript etc. before setting a content type header and serving the file.
Tres
+1  A: 

Website feedback: Very pretty website, perhaps a little too informal (though that is just an opinion).

Documentation > Api

Click on a compoenent below to view it's documentation.

Should be

Documentation > A**PI**

Click on a comp**on**ent below to view its documentation.

jezmck
Thanks jezmck. Two pairs of eyes are always better than one. using "Api" instead of "API" is a stylistic choice since the breadcrumbs are being automatically generated through a helper. As for the design, I am trying to be informal.
Tres