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:
-
domains
- http://tom.sapletta.com - with files from this project
- http://sapletta.com/Private/cv.yaml - data in yaml format for read only with .htaccess
-
libraries:
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
- User - access for more Private data
- Admin - make a config data file date
- System - executing system, Admin, User, Guest acces controll for content (by Admin config)
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)
+----------------+
| |
| 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 |
| |
+----------------+
^
+--------------+ |
| | |
| 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
^
+--------------+ |
| | |
| 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/