Giter Site home page Giter Site logo

kitpages / kitpagesfilesystembundle Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 4.0 73 KB

This is a bundle that provides a filesystem abstraction layer. Basicaly this does the same as the gaufrette library from KnpLabs, but it manages much more efficiently big files. We can manage a 2GB file with a memory limit of 128Mo for the PHP process. We never transfert the entire content in a $content variable.

Home Page: http://www.kitpages.fr/fr/cms/122/kitpagesfilesystembundle

License: MIT License

PHP 100.00%

kitpagesfilesystembundle's People

Contributors

fabienpapet avatar philippe-levan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kitpagesfilesystembundle's Issues

Insights Code scanning report

Hi

Thank you for your great work with this bundle and your contribution to the open source community.

I have put the bundle through Sensiolabs Insights code scanning and just wanted to share the findings with you.

The scanning found 11 Major, 20 Minor, 36 Info issues/recommendations.

They are:
PHP configuration should not be changed dynamically
MajorBugrisk
in Service/Adapter/AmazonS3.php, line 208
ini_set('zlib.output_compression', 'Off');
Changing PHP configuration dynamically through ini_set() may create hard to debug errors.

See https://insight.sensiolabs.com/what-we-analyse/php.dynamically_change_configuration


exit() and die() functions should be avoided
MajorBugrisk
in Service/Adapter/AmazonS3.php, line 260

See https://insight.sensiolabs.com/what-we-analyse/php.use_exit_function


PHP response functions should not be used 6
MajorBugrisk
in Service/Adapter/AmazonS3.php, line 230

header('Cache-Control: public, max-age=0');
Using PHP response functions (like header() here) is discouraged, as it bypasses the Symfony event system. Use the HttpFoundationResponse class instead.

in Service/Adapter/AmazonS3.php, line 231
in Service/Adapter/AmazonS3.php, line 232
in Service/Adapter/AmazonS3.php, line 233
in Service/Adapter/AmazonS3.php, line 234
in Service/Adapter/AmazonS3.php, line 236

See https://insight.sensiolabs.com/what-we-analyse/symfony.use_php_response_function


Absolute path constants DIR and FILE should not be used 3
MajorBugrisk
in Test/AbstractAdapterTest.php, line 34
if (!is_dir(dirname(FILE).'/../Tests/tmp')) {
DIR and FILE constants may conflict with the Symfony resource overriding system

in Test/AbstractAdapterTest.php, line 35
in Test/AbstractAdapterTest.php, line 39

See https://insight.sensiolabs.com/what-we-analyse/symfony.dependency_injection.use_dir_file_constant

Attached is a more detailed report.
KitpagesFileSystemBundle - SensioLabsInsight.pdf

If possible for you to fix these issues/comments/recommendations with a future commit, it will be appreciated.

Kind Regards
Renier Lewis

AWS SDK in Composer

If aws-sdk-for-php is an optional package (as is suggested in your documentation for deps files) could it be listed in composer.json as a suggestion rather than a requirement please?

e.g.

"require": {
    "php": ">=5.3.2",
    "symfony/framework-bundle": "2.0.*",
    "kitpages/util-bundle": ">=v1.0.0"
},
"suggest": {
    "aws-sdk-for-php": "Add for AWS integration"
}

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.