Skip to content

xtlsoft/Saphon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Saphon

Re-define web development.

Stage: WIP

Concept Documentation

Concept of Saphon

Development

This project is still under development.

Pull Requests are welcomed.

Ways of contributing

Currently, direct push to master branch is not allowed.

All changes should be merged using Pull Requests.

A pull request can be merged only when @xtlsoft accepts it at this stage.

Code style

Follow PSR-12 extended code style guide.

https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md

Example:

<?php

/**
 * The file is a part of Saphon
 * project. Please use it under
 * its license.
 *
 * @package  Saphon
 * @license  MIT
 * @author   Tianle Xu <xtl@xtlsoft.top>
 * @category framework
 * @link     https://github.com/xtlsoft/Saphon/
 */

namespace Saphon\Docs\CodeStyle;

/**
 * An example of classes.
 */
class ExampleClass
{
    /**
     * ID of this class
     *
     * @var integer
     */
    protected $id = 0;

    /**
     * Constructor
     *
     * @param integer $id
     */
    public function __construct(int $id)
    {
        $this->id = $id;
    }

    /**
     * Set ID property
     *
     * @param integer $id
     * @return self
     */
    public function setId(int $id): self
    {
        $this->id = $id;
        return $this;
    }
}

Commit style

See https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines.

You'd better sign your commits.

Branches

Currently, development will be under future branch.

future: development branch, may contain unusable code and incomplete code.

master: branch with latest but unstable features.

About

[WIP] Re-define web deveploment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages