Skip to content

example how it is possible to create easy framework for PHP with print remote data

Notifications You must be signed in to change notification settings

tom-sapletta-com/tom.sapletta.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info about project

This is example how to easy is possible creating PHP framework with make services with remote data.

The principle of this project are less exceptions, the more rules.

The main elements:

Tree folders:

 - /Community - external library (read only, Writing by System )
 - /Core - library for start project (read only, Writing by Producer )
 - /Private - private data for project and external services (read only for guest, Writing by System, Admin, User )
 - /Public - all data with are share for internet (read only)

Roles:

  • Producer - made a system - not used in project
    • System - executing system, Admin, User, Guest acces controll for content (by Admin config)
      • Admin - make a config data file date
        • User - access for more Private data
          • Guest - access only for Public and share Private/user/guest

Interesting solutions:

  • Decode private data by JS function
    • for all data which are private
    • data which the Internet search engine should be saving as original string, but as encoding data
  • opportunity to present data from an external server
  • the file structure for the data set (Private/Public, Core/Community)

Local version - basic

 +----------------+
 |                |
 |  Community     |
 |                |
 |  Core          |
 |                |
 |  Local         |
 |                |
 |  Private       |
 |                |
 |  Public        |
 |                |
 +----------------+

A distributed version of the delegation data and code from external user repositories, server, cloud

 +--------------+     +----------------+
 |              |     |                |
 |  Community   +---->|   Core         |
 |              |     |                |
 +--------------+     |   Local        |
                      |                |
                      |   Private      |
                      |                |
                      |   Public       |
                      |                |
                      +----------------+

Version with a delegation of the core and external code/data per user, server, cloud

                     ^
+--------------+     |
|              |     |
|  Community   +---->|    +----------------+
|              |     |    | domain1.com    |
+--------------+     +--->|----------------|
                     |    |                |
     +---------+     |    |   Local        |
     |         |     |    |                |
     |  Core   +---->|    |   Private      |
     |         |     |    |                |
     +---------+     |    |   Public       |
                     |    |                |
                     |    +----------------+
                     |
                     |    +----------------+
                     |    | domain2.com    |
                     +--->|----------------|
                     |    |                |
                     |    |   Local        |
                     |    |                |
                     |    |   Private      |
                     |    |                |
                     |    |   Public       |
                     |    |                |
                     |    +----------------+
                     |
                     v

Version with a delegation of the core and external code/data per user, server, cloud and shared public data.

                     ^
+--------------+     |
|              |     |
|  Community   +---->|    +----------------+
|              |     |    | domain1.com    |
+--------------+     +--->|----------------|
                     |    |                |
  +------------+     |    |   Local        |
  |            |     |    |                |
  |   Core     +---->|    |   Private      |
  |            |     |    |                |
  +------------+     |    +----------------+
                     |
    +----------+     |
    |          |     |
    |  Public  +---->|    +----------------+
    |          |     |    | domain2.com    |
    +----------+     +--->|----------------|
                     |    |                |
                     |    |   Local        |
                     |    |                |
                     |    |   Private      |
                     |    |                |
                     |    +----------------+
                     |
                     v

Extended version of overriding

                     ^
+--------------+     |
|              |     |
|  Community   +---->|    +----------------+
|              |     |    |   domain.de    |
+--------------+     +--->|----------------|
                     |    |                |
  +------------+     |    |   Local        |
  |            |     |    |                |
  |   Core     +---->|    |   Private      |
  |            |     |    |                |
  +------------+     |    |   Public       |
                     |    |                |
    +----------+     |    +----------------+
    |          |     |
    |  Public  +---->|    +----------------+
    |          |     |    |   domain.pl    |
    +----------+     +--->|----------------|
                     |    |                |
                     |    |   Local        |
                     |    |                |
                     |    |   Private      |
                     |    |                |
                     |    |   Public       |
                     |    |                |
                     |    +----------------+
                     v

More info about patterns: http://sapletta.com/pl/prywatne-dane-odseparowane-od-projektu/

About

example how it is possible to create easy framework for PHP with print remote data

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published