PHPackages                             ufukcanatann/prism - 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. [Framework](/categories/framework)
4. /
5. ufukcanatann/prism

ActiveProject[Framework](/categories/framework)

ufukcanatann/prism
==================

PRISM - Modern PHP Framework for Enterprise Applications

v1.0.8(9mo ago)02MITPHPPHP &gt;=8.0

Since Aug 10Pushed 9mo agoCompare

[ Source](https://github.com/ufukcanatann/prism)[ Packagist](https://packagist.org/packages/ufukcanatann/prism)[ RSS](/packages/ufukcanatann-prism/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (48)Versions (5)Used By (0)

PRISM Framework
===============

[](#prism-framework)

**Modern PHP Framework for Enterprise Applications**

PRISM Framework is a powerful, secure, and developer-friendly PHP framework designed for building modern web applications and APIs. Built with enterprise-grade features and best practices in mind.

Key Features
------------

[](#key-features)

- \*\* MVC Architecture\*\*: Clean, organized Model-View-Controller structure
- \*\* Blade Template Engine\*\*: Powerful and intuitive templating system
- \*\* Built-in Security\*\*: CSRF protection, XSS prevention, input validation
- \*\* High Performance\*\*: Optimized routing, caching, and database operations
- \*\* Dependency Injection\*\*: Modern service container and dependency injection
- \*\* Powerful CLI Tools\*\*: Code generators and management commands
- \*\* Database Features\*\*: Migrations, seeders, factories, and query builder
- \*\* RESTful APIs\*\*: Built-in API support with JSON responses
- \*\* Middleware System\*\*: Flexible request/response processing
- \*\* Modern UI\*\*: Bootstrap 5 integration for responsive design

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- MySQL 5.7+ / PostgreSQL 10+ / SQLite 3
- Composer
- Web server (Apache/Nginx)

Quick Start
-----------

[](#quick-start)

### Installation with Composer (Recommended)

[](#installation-with-composer-recommended)

```
# Create a new project
composer create-project ufukcanatann/prism my-project

# Installation with a specific version
composer create-project ufukcanatann/prism my-project "1.0.*"

# Choose the dist package
composer create-project ufukcanatann/prism my-project --prefer-dist

# Go to the project directory
cd my-project

# Start the server
php prism system:serve
```

### Manuel Installation

[](#manuel-installation)

#### 1. Download Project

[](#1-download-project)

```
git clone  my-app
cd my-app
```

#### 2. Load Dependencies

[](#2-load-dependencies)

```
composer install
```

#### 3. Environment Setup

[](#3-environment-setup)

```
cp .env.example .env
```

#### 4. Environment Configuration

[](#4-environment-configuration)

Edit the `.env` file:

```
APP_NAME="My Application"
APP_ENV=local
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=my_app
DB_USERNAME=root
DB_PASSWORD=
```

#### 5. Framework Installation

[](#5-framework-installation)

```
php prism system:install
```

#### 6. Start Development Server

[](#6-start-development-server)

```
php prism system:serve
```

Go to `http://127.0.0.1:8000` to view your application

Usage Examples
--------------

[](#usage-examples)

### Generate Your First Components

[](#generate-your-first-components)

```
# Create a new controller
php prism make controller UserController --resource

# Create a model with migration
php prism make model User --migration

# Create a complete CRUD setup
php prism make model Post --all
```

### Define Routes

[](#define-routes)

```
// routes/web.php
$router->get('/users', [UserController::class, 'index']);
$router->post('/users', [UserController::class, 'store']);
$router->get('/users/{id}', [UserController::class, 'show']);

// Route groups with middleware
$router->group(['middleware' => 'auth'], function($router) {
    $router->get('/dashboard', [DashboardController::class, 'index']);
});
```

### Create Controllers

[](#create-controllers)

```
// app/Http/Controllers/UserController.php
namespace App\Http\Controllers;

class UserController extends Controller
{
    public function index()
    {
        return view('users.index', [
            'users' => User::all()
        ]);
    }

    public function store(Request $request)
    {
        $validated = $request->validate([
            'name' => 'required|string|max:255',
            'email' => 'required|email|unique:users'
        ]);

        User::create($validated);

        return redirect('/users')->with('success', 'User created!');
    }
}
```

### Build Views with Blade

[](#build-views-with-blade)

```
// resources/views/users/index.blade.php
@extends('layouts.app')

@section('title', 'Users')

@section('content')

    Users

    @foreach($users as $user)

                {{ $user->name }}
                {{ $user->email }}

    @endforeach

@endsection
```

Configuration
-------------

[](#configuration)

### Environment Variables

[](#environment-variables)

Configure the following settings in `.env` file:

```
APP_NAME=PRISM Framework
APP_ENV=local
APP_DEBUG=true
APP_URL=http://localhost:8000
APP_KEY=your-32-character-key

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=prism
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=file
SESSION_DRIVER=file
MAIL_MAILER=smtp
```

### Middleware Configuration

[](#middleware-configuration)

```
// config/app.php
'middleware' => [
    'before' => [
        \Core\Middleware\CorsMiddleware::class,
        \Core\Middleware\SessionMiddleware::class,
    ],
    'after' => [
        \Core\Middleware\ResponseMiddleware::class,
    ]
]
```

Security
--------

[](#security)

- **CSRF Protection**: CSRF token validation for all forms
- **Encryption**: Secure password hashing with bcrypt
- **Session Security**: Secure session management
- **SQL Injection Protection**: Prepared statements usage
- **XSS Protection**: Output escaping
- **Audit Logging**: Comprehensive user activity tracking

Database Schema
---------------

[](#database-schema)

The system includes the following core tables:

- `users` - User information
- `migrations` - Migration tracking
- `password_resets` - Password reset tokens
- `failed_jobs` - Failed job queue

API Usage
---------

[](#api-usage)

### RESTful Endpoints

[](#restful-endpoints)

```
// User operations
GET    /api/users              # User list
POST   /api/users              # Create new user
GET    /api/users/{id}         # User details
PUT    /api/users/{id}         # Update user
DELETE /api/users/{id}         # Delete user
```

Frontend
--------

[](#frontend)

- **Bootstrap 5**: Modern and responsive design
- **Font Awesome**: Icon library
- **Chart.js**: Charts and statistics
- **jQuery**: JavaScript library

CLI Commands
------------

[](#cli-commands)

PRISM Framework comes with powerful CLI tools to speed up development:

### Code Generators

[](#code-generators)

```
# Generate controllers
php prism make controller UserController
php prism make controller ApiController --api

# Generate models with related files
php prism make model User --migration --factory --seeder
php prism make model Post --all

# Generate database files
php prism make migration create_users_table --create=users
php prism make seeder UserSeeder
php prism make factory UserFactory

# Generate other components
php prism make middleware AuthMiddleware
php prism make request StoreUserRequest
```

### Database Operations

[](#database-operations)

```
# Run migrations
php prism db migrate

# Seed database
php prism db seed

# Migration + seeding
php prism db migrate --seed
```

### System Management

[](#system-management)

```
# Start development server
php prism system serve --port=8080

# Application maintenance
php prism system down
php prism system up

# Performance & security
php prism system optimize
php prism system security:scan
php prism system clear:cache

# Environment management
php prism system env list
php prism system env set APP_DEBUG false

# Debugging & information
php prism system route:list
php prism system inspect database
```

Testing
-------

[](#testing)

```
# Run tests
composer test

# Run tests with coverage
composer test-coverage
```

Contributing
------------

[](#contributing)

1. Fork the project
2. Create feature branch (`git checkout -b feature/amazing-feature`)
3. Commit changes (`git commit -m 'Add amazing feature'`)
4. Push to branch (`git push origin feature/amazing-feature`)
5. Create Pull Request

License
-------

[](#license)

This project is licensed under the MIT License.

Support
-------

[](#support)

For any issues or suggestions:

- Open an issue
- Email:

Updates
-------

[](#updates)

### v3.0.0

[](#v300)

- Initial release
- Basic MVC structure
- User management
- Database migrations
- API support
- Modern UI

---

**PRISM Framework** - Modern PHP Framework for Enterprise Applications

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance62

Regular maintenance activity

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~0 days

Total

4

Last Release

272d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f40160ceeee458317be1f3bf61ce49af02c88182e65ab17b041d419be74edb16?d=identicon)[ufukcanatann](/maintainers/ufukcanatann)

---

Top Contributors

[![ufukcanatan](https://avatars.githubusercontent.com/u/65026462?v=4)](https://github.com/ufukcanatan "ufukcanatan (13 commits)")[![ufukcanatann](https://avatars.githubusercontent.com/u/24425803?v=4)](https://github.com/ufukcanatann "ufukcanatann (2 commits)")

---

Tags

phpapiframeworkenterprisemodern

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ufukcanatann-prism/health.svg)

```
[![Health](https://phpackages.com/badges/ufukcanatann-prism/health.svg)](https://phpackages.com/packages/ufukcanatann-prism)
```

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M646](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)

PHPackages © 2026

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