定制 dhruv125/ownwork 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dhruv125/ownwork

最新稳定版本:v1.0.8

Composer 安装命令:

composer create-project dhruv125/ownwork

包简介

OwnWork - Minimal PHP Framework for an MVC Project

README 文档

README

Commits Last Commit Latest Release - Github Packagist Name Latest Release - Packagist Language Downloads Dependencies License

  • Don't go into major dependencies rabbit hole.
  • Build your MVC app with PHP.
  • Simple Routing.
  • Easier View Creation.
  • Build a Large Web App with minimal but useful base.

Dependencies

  1. php (version: 8.0 or greater).
  2. composer (version: 2.9 or greater).

Structure

ownwork
   ├── app
   │   ├── Controller # Your Controllers directory
   │   │   └── UserController.php
   │   ├── Helper # This file includes Helper and Support Files which handles important functions like Routing, Viewing
   │   │   ├── AppViews # Views Required by OwnWork like Error Pages
   │   │   │   ├── general-notfound-error.php
   │   │   │   ├── styles
   │   │   │   │   └── index.css
   │   │   │   └── view-notfound-error.php
   │   │   ├── ConsoleHelper.php # Pretty Printing for Console
   │   │   ├── Router
   │   │   │   └── Route.php # This File handles Routing, should not be modified, unless you know what you do.
   │   │   └── Viewer
   │   │       └── View.php # This File handles calling views, should not be modified, unless you know what you do.
   │   └── Model # Your Models directory
   │       └── UserModel.php
   ├── bundle # Files Which run by you in manual manner to handle certain things like env, helper function routes
   │   ├── Bundler.php # This File Bundles your App
   │   ├── Environment # Directory Which Setups your Environment Settings
   │   │   ├── DotEnvironment.php
   │   │   └── Environment.php
   │   ├── HelperFunction.php # Global Helper Functions are defined here
   │   └── Routes.php # Your Routes are defined here
   ├── composer.json
   ├── composer.lock
   ├── package-lock.json
   ├── package.json
   ├── public # This Directory will be exposed to User Side, Static Assets should be placed in it
   │   ├── build
   │   ├── index.php # Entry Level File, Starting Point of App
   │   └── styles
   │       └── tailwind.compiled.css # Compiled CSS File For Default Page
   ├── resources
   │   ├── js
   │   ├── css
   │   │   └── tailwind.css # Default Tailwind Source File
   │   ├── template
   │   │   ├── Controller.php # Default Controller Template
   │   │   ├── Model.php # Default Model Template
   │   │   └── View.php # Default View Template
   │   └── views # Your Views directory
   │       ├── main.php
   │       └── welcome.php
   ├── vendor # Application Dependecies and autoloader directory
   │   └── autoload.php # Include this to autoload files
   └── worker # Your Command Line Manager

Installation

  1. Make sure your composer version is atleast 2.9 or greater.
composer --version
  1. Run the Composer Command to Create Project
composer create-project dhruv125/ownwork 

# Or
# composer create-project dhruv125/ownwork ProjectName
# This is will create project in ProjectName Directory
  1. cd to Project Directory ownwork and Run composer run setup command.
cd ownwork/
composer run setup
  1. Edit .env file.
APP_NAME=Ownwork

DB_NAME=mysql
DB_HOST='127.0.0.1'
DB_USER=root
DB_PASS=

That's it, your OwnWork application is ready to run it's Hello World Program.

Usage

  1. Run The Server through worker script
php worker serve
  • Supposed Output:
Starting OwnWork server at port:8000...
[Mon Jan 01 00:00:00 2026] PHP 8.2.XX Development Server (http://localhost:8000) started

Or

Just Run Command

composer run dev

Documentation

  • Go through Documentation of OwnWork Here!

Recommended Packages

  • Since our OwnWork is really minimal Framework, you may require other packages for functionality like Database interactions.
  • Recommendations are:
    • delight-im/db: For database interaction - Github Link
    • phpunit/phpunit: For testing - Github Link
    • illuminate/support: For Illuminate Support like in Laravel

License

Ownwork Project is licensed under MIT License

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固