Download the PHP package nigestream/xwork without Composer

On this page you can find all versions of the php package nigestream/xwork. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package xwork

XWork

介绍

xwork 是一款轻量级的面向对象php开发框架,它基于ORM、UnitOfWork(工作单元)、MVC等。没有复杂的设计模式,没有复杂的外部接口,一切只为了简单,代码简单、逻辑清晰。尽可能的使用约定,消除不必要的配置文件。
这里没有中间件,没有控制反转,没有Facade,超轻量级路由,为了就是学习成本低、上手快,让你能够更快的投入到项目开发中去。
数据操作完全面向对象,自研的ORM模块配合工作单元,让您飞一般的玩转数据。当然这里牺牲了一点性能,但是对于web项目来说,那点性能可以忽略不计(个人认为,不喜勿喷)

架构

xwork
架构还是标准的mvc+dao框架架构,特殊的是xwork深度结合ORM,这里没有选择,必须使用ORM。。。
orm和工作单元的深度结合,使得关于表设计和逻辑组织都非常的简单、迅速和高效。

项目结构

你可以通过xworker脚手架来新建项目

安装

  1. 给你的项目起个名字,比如:mkdir pinduoduo
  2. cd pinduoduo
  3. composer require "nigestream/xwork"
  4. 接下来设置个环境变量 export PATH=$PATH:vendor/bin
  5. 现在你可以执行xworker看一下效果了xworker
  6. 我们来初始化一个项目,执行命令xworker make:init, 会在当前目录下新建一个app目录,即上述项目结构所示
  7. 以后你就可以用项目目录下的xworker来执行了, 比如:php xworker make:new(忘记第4步的环境变量吧)

注意:项目的entity目录使用classmap映射加载的,非PSR-4自动加载方式。
所有新增的实体类必须放在app/domain/entity目录下,且需要执行composer dumpautoload来生成classmap;但如果使用xworker make:entity 则会自动执行composer dumpautoload

模块设计

Entity

todo @淘小金

Dao

todo @叶孤城

UnitOfWork

todo @老史

MVC

todo @大哥大

todos

Contributors


All versions of xwork with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
phpunit/phpunit Version 7.2.5
guzzlehttp/guzzle Version ~6.0
symfony/console Version ^4.1
symfony/finder Version ^4.1
symfony/filesystem Version ^4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nigestream/xwork contains the following files

Loading the files please wait ...