GithubHelp home page GithubHelp logo

bombayworks / zendframework1 Goto Github PK

View Code? Open in Web Editor NEW
17.0 7.0 16.0 17.68 MB

Zend Framework 1 lightweight composer repository

License: BSD 3-Clause "New" or "Revised" License

PHP 99.97% Shell 0.01% PowerShell 0.01% Batchfile 0.01%

zendframework1's Introduction

Zend Framework 1 for Composer

This is a mirror of the official Zend Framework 1 subversion repository, with some modifications for improved Composer integration. This package can also be found at Packagist.

Why?

There are several reasons for using this package over of the official package:

  • The following folders have been removed: demos, documentation, externals, extras/documentation, extras/tests, src, tests. This reduces the number of files from over 72000 to below 3500. It also reduces size from ~532MB to ~33MB.
  • Improved autoloading. Explicit require_once calls in the source code has been commented out to rely on composer autoloading, this reduces the number of included files to a minimum.
  • Composer integrates better with github than it does with subversion.

How to use

Add "bombayworks/zendframework1": "1.*" to the require section of your composer.json, include the composer autoloader and you're good to go.

Automatic mirroring

You dont need to worry about future releases missing from this repository. A cron job has been setup to automatically commit, tag and push new releases to this repository.

zendframework1's People

Contributors

deadbeef84 avatar

Stargazers

 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

zendframework1's Issues

PluginLoader

We are experiencing problems with the Zend_Form component and the Zend_Loader_PluginLoader.

Since the PluginLoader tries to find the files without autoloading, our own Form Elements are not found.
It would be solved by allowing autoload inside the load() method of the PluginLoader.
We simple changed class_exists($className, false) to class_exists($className, true) and everything worked as expected.

Any chance to get a new version with this improvement?

Bootstrap loading breaks in 1.12.12

We get a "Bootstrap class not found" exception after updating to 1.12.12. It seems that there's one require_once() call that should remain active on line 333 of Zend_Application.

    if (!class_exists($class, false)) {
        // require_once $path;
        if (!class_exists($class, false)) {
             throw new Zend_Application_Exception(
                'Bootstrap class not found'
             );
        }
    }

Disabling this require_once() call makes Zend_Application unable to load the Bootstrap class specified by the bootstrap.class and bootstrap.path config options. To the best of my knowledge the autoloader isn't intended to handle the bootstrap class.

ZF 1.12.4

Zend Framework 1.12.4 was released yesterday. Will this repository be updated to the latest release?

Fatal error ZendX

When using the ZendX library via composer I get this fatal error:

Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with message 'Plugin by name 'JQuery' in /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/Loader/PluginLoader.php on line 412 Zend_Loader_PluginLoader_Exception: Plugin by name 'JQuery' was not found in the registry; used paths: ZendX_JQuery_View_Helper_: ZendX/JQuery/View/Helper/ Zend_View_Helper_: Zend/View/Helper/ in /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/Loader/PluginLoader.php on line 412 Call Stack: 0.1023 638912 1. {main}() /var/www/backend/public/index.php:0 0.1102 1565152 2. Zend_Application->bootstrap(???) /var/www/backend/public/index.php:55 0.1102 1565232 3. Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(???) /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/Application.php:355 0.1102 1565232 4. Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(???) /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:586 0.1137 1950432 5. Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(???) /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:622 0.1138 1950776 6. Bootstrap->_initView() /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:669 0.1170 2283920 7. Zend_View->jQuery() /var/www/backend/application/Bootstrap.php:68 0.1170 2284312 8. Zend_View_Abstract->__call(???, ???) /var/www/backend/application/Bootstrap.php:68 0.1170 2284312 9. Zend_View_Abstract->getHelper(???) /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/View/Abstract.php:344 0.1170 2284448 10. Zend_View_Abstract->_getPlugin(???, ???) /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/View/Abstract.php:618 0.1171 2284720 11. Zend_Loader_PluginLoader->load(???, ???) /var/www/backend/vendor/bombayworks/zendframework1/library/Zend/View/Abstract.php:1182

stopped working after 1.12.5

it appears, that you've removed the "extras" library, but the composer.json still has "ZendX_": "extras/library/"
in psr-0 section.

1.12.3 works fine

composer install fails with
[RuntimeException]
Could not scan for classes inside "removed/vendor/bombayworks/zendframework1/extras/library/" which does not appear to be a file nor a folder

solutions:

  • remove psr-0 metion bout ZendX
  • add extras folder back

Create ZendX package in ZF1 organization to ease up migration to ZF2

The https://github.com/zf1 initiative is a great way to gradually migrate from ZF1 to ZF2, thanks for that effort!

However, it seems the ZendX package has not been isolated as a separate package there yet.

Problem
Because the ZendX package depends on the complete Zend Framework, still the complete Zend Framework is installed.

Is it possible to create a zf1/zend-extras component that only depends on the really required components (I guess only zf1/zend-view is required...)? This way the complete Zend Framework is not required anymore and we can easily see which parts still need to be migrated.

DomQuery.php and Redirect.php hack

For enabling testing with PHPUnit > 3.5, files DomQuery.php and Redirect.php have a hack and because of that, Zend/Test/PHPUnit/ControllerTestCase.php should not have commented out those require_once lines:

require_once 'Zend/Test/PHPUnit/Constraint/Redirect.php';
require_once 'Zend/Test/PHPUnit/Constraint/DomQuery.php';

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.