Skip to content

lukasbestle/knowledgebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KnowledgeBase.php Build Status

An object storage producing real speaking code implemented in PHP.

You ever wanted to put some stuff in a cool object in PHP? You already can, I hear you say. No, this one is cooler!

Try it

You can find a demo file with a lot of comments in this repo called demo.php with all stuff KnowledgeBase.php can do at the moment.

You can run automated tests using PHPUnit: Simply run

$ phpunit

from the root directory of the repo.

Have fun!

What the fuck?! Why did you code that?

There are some simple reasons why I did that as an four-hour project. Here they are:

  1. There are some languages like Prolog or SQL doing exactly that: Offering a way to parse spoken words as valid code. Why not offer such a way for objects in PHP? :)
  2. Some people always say "Let your code and variable names speak so someone can understand it!". Here you go!
  3. I wanted to make more cool stuff using jQuery-like query stuff. Actually inspired by Kirby CMS - it has exactly that for all objects making working with it easier and cooler. So that was a learning project for me.
  4. It is cool. Period.

Can I use that for production?

Yeah, you can. If you really want to use it.

It does not seem to have bugs, but do you really need it? Maybe use a simpler structure :).

Help me making it better!

As I already said: It is a learning project. So if you know a better way to implement that features, let me know on Twitter or create a Pull Request!

Thanks a lot!

Credits

  • Idea to implement a jQuery-like query syntax in a PHP project: Kirby CMS
  • Development and query syntax: Lukas Bestle

About

An object storage producing *real* speaking code implemented in PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages