2017 © Pedro Peláez
 

library pwf

Professional web framework

image

professionalweb/pwf

Professional web framework

  • Thursday, February 15, 2018
  • by SergioMadness
  • Repository
  • 1 Watchers
  • 0 Stars
  • 133 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 20 Versions
  • 0 % Grown

The README.md

PWF - framework for professional web development

http://pwf.web-development.pw/, (*1)

Latest Stable Version Build Status Code Climate Coverage Status Dependency Status License Latest Unstable Version, (*2)

Project structure

autoloader/          autoloader
basic/               basic classes
    controller/      basic controllers
    db/              classes for working with DB
    interfaces/      basic interfaces
components/          modules
    activerecord/    AR pattern
    authorization/   authorization/identity module
    compressor/      response minifier
    datamapper/      data mapper pattern
    datapaginator/   pagination
    dbconnection/    database connection module
    eventhandler/    event handler
    i18n/            internationalization module
    monologadapter/  adapter for [Seldaek/monolog](https://github.com/Seldaek/monolog)
    observer/        obserber pattern
    socialite/       socialite adapter
    sphinxql/        adapter for [foolz/sphinxql-query-builder](https://github.com/FoolCode/SphinxQL-Query-Builder)
    swiftmailer/     swiftmailer adapter
exception/           exception classes
    abstraction/     abstract classes
    interfaces/      interfaces
traits/              traits
web/                 web/net objects

Requirements

  • PHP 5.4+

Dependencies

Installation

PWF is available through composer, (*3)

composer require professionalweb/pwf "dev-master", (*4)

Alternatively you can add the following to the require section in your composer.json manually:, (*5)

"professionalweb/pwf": "dev-master"

Run composer update afterwards., (*6)

Initialization

index.php

require(__DIR__ . '/../vendor/autoload.php'); 

(new \project\Application())->run();

Application.php

namespace project;

use pwf\basic\RouteHandler;
use Symfony\Component\Yaml\Yaml;

class Application extends \pwf\basic\Application
{

    public function __construct()
    {
        parent::__construct(Yaml::parse(file_get_contents('../project/config/config.yaml')));

        RouteHandler::registerHandler('/',
            '\project\controllers\MainController::index');

        $this->getResponse()->setHeaders([
            "Access-Control-Allow-Headers: Content-Type",
            "Content-Type:text/html; charset=utf-8"
        ]);
    }
}

Controllers

title = 'Main page';

        return $this->render('project/views/main/index.php',
            [
                'name' => 'World!'
            ]);
    }
}
```


Views
-----
```html



    = $title ?></title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
</head>
<body>


<div id="wrapper">
    <div id="page">
        <div id="content">
            Hello, = $name ?>!
        </div>
    </div>
</div>


</body>
</html>

Models

class PostModel extends \pwf\basic\DBModel
{

    public function __construct(array $attributes = [])
    {
        parent::__construct(attributes);
        $this->table('post');
    }
}

The MIT License (MIT)

Copyright (c) 2016 Sergey Zinchenko, Professional web, (*7)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*8)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*9)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*10)

The Versions

15/02 2018

dev-dev

dev-dev http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

14/02 2018

dev-master

9999999-dev http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

14/02 2018

0.9.2

0.9.2.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

26/09 2017

0.9.1

0.9.1.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

17/04 2017

0.9

0.9.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

12/01 2017

0.8.3

0.8.3.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

12/01 2017

0.8.2

0.8.2.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

02/01 2017

0.8.1

0.8.1.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

22/12 2016

0.8

0.8.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

07/12 2016

0.7

0.7.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

26/10 2016

0.6

0.6.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

07/09 2016

0.5.1

0.5.1.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

30/07 2016

0.5

0.5.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

28/06 2016

dev-feature/mongo

dev-feature/mongo http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

27/06 2016

dev-feature/rabbitmq

dev-feature/rabbitmq http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

08/06 2016

0.4

0.4.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

21/04 2016

dev-dev-php7

dev-dev-php7 http://pwf.web-development.pw/

Professional web framework for PHP 7

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zinchenko Sergey

composer mvc php7 professional web pwf web-development.pw

06/02 2016

0.3

0.3.0.0 http://pwf.web-development.pw/

Professional web framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

27/01 2016

0.2

0.2.0.0 http://pwf.web-development.pw/

PW framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Zinchenko Sergey

composer mvc professional web pwf web-development.pw

06/11 2015

0.1

0.1.0.0 http://datalayer.ru/

DataLayer framework

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Zinchenko Sergey

composer mvc datalayer dlf datalayer.ru