Git Product home page Git Product logo

demo's Introduction

Pluf

Build Status codecov Coverage Status Maintainability Test Coverage

Pluf is a light, reliable and small PHP application framework to develop REST-full Multi/Single-tenant applications. This is the core of the Pluf framework which contains core concepts of Pluf Framework.

Installation

To use the Pluf library in your project, simply add a dependency on pluf/core to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on UPDATE_NAME 1.x:

{
    "require": {
        "pluf/core": "~6.0"
    }
}

Development

If you would like to contribute to Pluf, please read the README and CONTRIBUTING documents.

The most important guidelines are described as follows:

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

To ensure a consistent code base, you should make sure the code follows the PSR-2 Coding Standards.

Running Composer

To pull in the project dependencies via Composer, run:

composer install

Running the CI checks

To run all CI checks, which includes PHPUnit tests, PHPCS style checks and coverage tag validation, run:

./vendor/bin/phpcs -p -s src

Running the tests

To run just the PHPUnit tests run

./vendor/bin/phpunit

demo's People

Contributors

hadimansouri avatar m-amiri avatar mahdiiscoming avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mahdiiscoming

demo's Issues

Can't find API's after installing

I can't access /api/ path after installing. Postman says:

<html>
    <head>
        <title>404 Not Found</title>
    </head>
    <body>
        <h1>Not Found</h1>
        <p>The requested URL /api/user was not found on this server.</p>
        <hr>
        <address>Apache/2.4.18 (Ubuntu) Server at localhost Port 4444</address>
    </body>
</html>

Invalid default value for \'expire\' - CREATE TABLE `sessions`

Hi
When Installing the new Demo server (by uncommenting some lines in index.php & open webpage to create tables), some people encounter this error:

Invalid default value for \'expire\' - CREATE TABLE `sessions` (
`id` mediumint(9) unsigned not null auto_increment NOT NULL,
`version` integer NOT NULL default 0,
`session_key` varchar(100) NOT NULL default \'\',
`session_data` longtext NOT NULL,
`expire` datetime NOT NULL default 0,
`tenant` mediumint(9) unsigned NOT NULL default 0,
PRIMARY KEY (`id`))ENGINE=InnoDB DEFAULT CHARSET=utf8;

What's the problem?

Duplicate column name \'tenant\'

When installing new server, I received following error:

- CREATE unique INDEX `tag_combo_idx` ON `geo_tag` (`tenant`, `tag_key`, `tag_value`, `tenant`);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.