Coder Social home page Coder Social logo

morse's People

Contributors

drewm avatar royopa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

morse's Issues

Framework detection out of scope?

I was wondering whether adding feature checks for things like "running on Laravel" or "running on WordPress" are out of scope for the library?

E.g.

if (Morse::featureExists('framework/laravel') {
    ...
} elseif (Morse::featureExists('cms/wordpress') {
    ...
} else {
    ...
}

Method names in src are misleading

I'm really not sure prefixing the method names in the src/Feature directory with "test" is a good idea. Its a little/really misleading when the tests are also all prefixed with "test".

Check for system functions

Hello,

I would like to have functionality to check for some system functions availability

The functions i want to check are

ini_set
set_time_limit
exec
shell_exec
ignore_user_abort
passthru
system
popen
proc_open

On some hosts those functions are disabled with the disable_functions setting in php.ini

Maybe the system functions deserve a namespace like system/ini_set , etc

Currently i am using very simple way to check but i would like to see support for those functions in the morse-php library, so i can include it in my project

// example way to check


$disabled = ini_get('disable_functions');

if (!strstr($disabled, 'ini_set')){
ini_set('memory_limit', '512M');
}


if (!strstr($disabled, 'set_time_limit')) {
set_time_limit(600);
}


if (!strstr($disabled, 'ignore_user_abort')) {
ignore_user_abort();
}

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.