GithubHelp home page GithubHelp logo

jackal's Introduction

Jackal

Jackal is a lightweight PHP framework that attmpts to load on demand only the things necessary to complete the task at hand. Currently still under major development due to issues that prevent easy adoption.

Philosophy

Lightweight

Many very good frameworks for PHP load everything necessary to do anything you want to do whether or not you want to do those things. This framework requires you to invoke other classes via Jackal, allowing Jackal to load required classes on-demand. This makes 90% of your pages load only themselves, since that's all they need anyway.

You call other modules like this:

Jackal::call("OtherClass/method");

Fast

Jackal doesn't attmept to wrap things that PHP already does.

Just as one example: Many frameworks, enumerate files in a directory or directories to search for the desired file. However, glob() is an internal function already supported by PHP which will return optimal results faster.

Existing frameworks might

$results = array();

foreach(scandir("/foo") as $file) 
  if(substr($file, 0, 5) == "class") 
  	if(substr($file, -4) == ".") 
			$results[] = $file;

Jackal does this:

$results = glob("/foo/class*.php");

TODO:

Add information about how to add Jackal as a submodule to other git repositories.

jackal's People

Contributors

tarwich avatar thefont avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jackal's Issues

Scope is invalid in __construct

When Jackal calls a Module method, it pushes that Module onto to scope stack, but when Jackal first initializes a Module, thus calling __construct, it doesn't modify the scope, so it will be wrong during __construct.

MIME types

The array of supported MIME types is currently stored in JackalModule.php, forcing me to update JackalModule.php every time I need to add a new MIME type. It's impractical to include every MIME type for every known file type in JackalModule, so it would be ideal if it were a config setting that could be placed into "private/config/jackal.yaml" somehow. That is all!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.