Victopia / php-node

Easy data framework for PHP MySQL, same query method for both physical and virtual columns.
Do What The F*ck You Want To Public License
1 stars 0 forks source link

Break the whole thing down into components #13

Open vicary opened 9 years ago

vicary commented 9 years ago

By using composers we have tasted a bit of the salt by people requesting a replacement of this and that, mostly the Log class for other implementations.

This whole framework can be transformed into an example, or boilerplate for my new projects in the future.

Separable components: These are ready to be separated into standalone repo and component

  1. Node (Also makes Database an interface)
  2. Log
  3. Resolver and resolvers
  4. Configuration
  5. ImageConverter
  6. XMLConverter
  7. Net
  8. Promise, Deferred
  9. EventEmitter
  10. Cache
  11. Optimist
  12. Translation (I may very well dumb this one because there are plenty of good i18n packages)

Possibly separable components: These functionalities needs modifications before they can be taken apart.

  1. Authentication
  2. Models
  3. Request / Resolve wrappers
  4. Sessions (Also Users)
  5. ExceptionsHandler (This one very hard)
  6. Process
    Note: requires OS level integration

While most of these functions depends on Node to work, or increase flexibilities thereof, need serious considerations before going ahead.

vicary commented 8 years ago

A few core components has better replacements