PHPackages                             xdire/dude-pmvc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. xdire/dude-pmvc

ActiveLibrary

xdire/dude-pmvc
===============

Friendly framework. Duuuudeeee!

0.1.7.2(9y ago)047MITPHPPHP &gt;=5.5.0

Since Mar 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/xdire/dude-pmvc)[ Packagist](https://packagist.org/packages/xdire/dude-pmvc)[ RSS](/packages/xdire-dude-pmvc/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

dude!
=====

[](#dude)

PHP micro-framework (5.5+ / 7+)

Installation: through Composer
==============================

[](#installation-through-composer)

1. Install Composer to desired folder from
2. execute next command (assuming that you installed Composer into folder as phar file)

```
php composer.phar create-project xdire/dude-pmvc myapp

```

myapp folder will be created in your desired folder

```
mv composer.phar myapp
cd myapp

```

execute composer update

```
php composer.phar update

```

done

Installation: Linking to Web Server
===================================

[](#installation-linking-to-web-server)

#### Folder structure of Application will look like below

[](#folder-structure-of-application-will-look-like-below)

```
myapp
--|
  |- App
  |- Drivers
  |- public
  |- vendor

```

#### Create new Virtual Host in your Web-Server

[](#create-new-virtual-host-in-your-web-server)

Point Virtual Host root to `/somepath/myapp/public`

##### Apache Virtual Host Directive

[](#apache-virtual-host-directive)

```

    AllowOverride None
    Require all granted

      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php

   ServerName someserver.domain
   DocumentRoot "/somepath/myapp/public"

```

##### Nginx - Server Directive

[](#nginx---server-directive)

```
server {
    listen	 80;
    server_name  localhost;

	location / {
                if (!-e $request_filename) {
                    rewrite (.*)$ /index.php last;
                }
        }

	root   /somepath/myapp/public;
    index  index.php index.html index.htm;

    location ~ \.php$ {
        fastcgi_param   APPENVIRONMENT  prod;
        fastcgi_pass    unix:/var/run/php-fpm/php-fpm.sock;
        fastcgi_index   index.php;
        fastcgi_param   SCRIPT_FILENAME /somepath/myapp/public$fastcgi_script_name;
        include fastcgi_params;
    }

}

```

After installation
==================

[](#after-installation)

#### Simple way

[](#simple-way)

Define some route in `/AppFolder/App/route.php`

```
App::route(ROUTE_ALL,'/',function ($req,$resp) {
    echo "Hello world";
});
```

And after go to your server `http://your_server/`

#### Complex way

[](#complex-way)

##### 1 Define some controller in the `/App/Controller` folder

[](#1-define-some-controller-in-the-appcontroller-folder)

```
namespace App\Controller;
use Xdire\Dude\Core\Face\RoutingController;
use Xdire\Dude\Server\Request;
use Xdire\Dude\Server\Response;

class ExampleController implements RoutingController
{
  public function acceptRoute(Request $request, Response $response)
  {
  	$response->send(200,"Hey Dude!Route was accepted");
  }
}
```

##### 2 Define controller route in `/AppFolder/App/route.php`

[](#2-define-controller-route-in-appfolderapproutephp)

Route example for every type of request

```
App::route(ROUTE_ALL,'/',function ($req,$resp) {
    App::routeController('ExampleController@testRoute',$req,$resp);
});
```

Route example for GET only Request

```
App::route(ROUTE_GET,'/',function ($req,$resp) {
    App::routeController('ExampleController@testRoute',$req,$resp);
});
```

Route example for POST only Request

```
App::route(ROUTE_POST,'/',function ($req,$resp) {
    App::routeController('ExampleController@testRoute',$req,$resp);
});
```

Types of request which is supported

```
ROUTE_ALL
ROUTE_GET
ROUTE_POST
ROUTE_UPD
ROUTE_DEL
ROUTE_PUT
ROUTE_OPT

```

##### 3 Middleware support

[](#3-middleware-support)

##### 4 CORS Middleware support

[](#4-cors-middleware-support)

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

3649d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0960dd7e4e1b8251c2aafbe856a1e37716e30397f1f4a256f97e6865a46c28b9?d=identicon)[xdire](/maintainers/xdire)

---

Top Contributors

[![xdire](https://avatars.githubusercontent.com/u/11039780?v=4)](https://github.com/xdire "xdire (17 commits)")

---

Tags

phpboilerplatedude

### Embed Badge

![Health badge](/badges/xdire-dude-pmvc/health.svg)

```
[![Health](https://phpackages.com/badges/xdire-dude-pmvc/health.svg)](https://phpackages.com/packages/xdire-dude-pmvc)
```

###  Alternatives

[samrap/gestalt

Gestalt is a simple, elegant PHP package for managing your framework's configuration values.

163.6k1](/packages/samrap-gestalt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
