GithubHelp home page GithubHelp logo

zendframework / modules.zendframework.com Goto Github PK

View Code? Open in Web Editor NEW
190.0 43.0 161.0 4.18 MB

Home for ZF2 module distribution

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

PHP 85.39% HTML 13.17% CSS 1.26% Makefile 0.18%

modules.zendframework.com's People

Contributors

adamlundrigan avatar akrabat avatar basz avatar blanchonvincent avatar bostjanob avatar cderue avatar cosmin-harangus avatar danielss89 avatar evandotpro avatar geeh avatar hounddog avatar ins0 avatar insekticid avatar lnxa avatar localheinz avatar mickaelcollet avatar mstaessen avatar mtymek avatar mwillbanks avatar ocramius avatar pem-fr avatar personman avatar phpboyscout avatar samsonasik avatar snapshotpl avatar superdweebie avatar tomasfejfar avatar websafe avatar weierophinney avatar xerkus 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  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

modules.zendframework.com's Issues

Read Details from composer

This would allow us also if a composer.json is existing to determine dependencies or which license is existing

Fatal error: Call to a member function getBody() on a non-object in /srv/hounddog/var/www/vhosts/modules.zendframework.com-201311151404/vendor/EdpGithub/src/EdpGithub/Api/AbstractApi.php on line 24

After submitting a new module I've visited the modules page:

http://modules.zendframework.com/websafe/zf-mod-zfc-user-i18n-de-de

And saw the following message:

Fatal error: Call to a member function getBody() on a non-object 
in /srv/hounddog/var/www/vhosts/modules.zendframework.com-201311151404
/vendor/EdpGithub/src/EdpGithub/Api/AbstractApi.php on line 24 

After refreshing a few times, problem is gone and can't reproduce now, but it should be easy by just submitting a new module and visiting this modules page.

Scoring / ranking algorithm

Once we get reviews in place this will be even a lower priority, but would still be a fun feature to implement. This idea comes from http://knpbundles.com/, however I think we can clean up the implementation.

We'll need some collaboration on how the algorithm could work, but I think instead of a "point" system like KNPBundles.com, we should look at more of a PageRank type result, where the score is on a scale of 0 - 10.

FAQ on KNPBundles.com's scoring algorithm. I think they have a very good start on the various metrics that are useful in discovering high quality modules.

Obviously if this were implemented, it would be an optional way of sorting modules, and mostly for fun -- we don't want this to turn into something political or create any unfairness in the modules community. Everyone should really have an equal chance to have their module discovered.

We could also probably start up a conversation with the KNPBundles folks and ask them for any ideas or tips they have for something like this, as I'm sure they've learned a thing or two creating their own implementation!

Purge Deleted Modules

If a Module has been deleted from github there is no way it can be deleted from the site currently. Wee need a way to check if modules are still existing and purge modules which have been removed.

User Page

Display information about a selected user.

Modules he owns.
Modules he contributed to

Packagist integration

It would be cool if we could detect that a module is on Packagist, and pull in the number of downloads it has and the date it was posted -- in the future this could be used as one attribute of a scoring / ranking algorithm.

Module Rating

Users should be able to rate modules

Currently there are 2 proposals for this at hand.

  1. Rating system like 1-5 points
  2. Similar systems to facebook like/dislike

Submit/Remove Modules via ajax

Currently the page is reloaded upon submit or remove. To make it easier to administrate modules they should be submitted via ajax

Feature request: A simple set of rules for all modules to follow.

Of course a rule set in context of a repository of ZF modules, a set of rules that helps developers to find and identify Zend Framework modules, even if they're not in this (or any other) repository.

Maybe a good starting point would be simple requirement of "type": "zf-module" in the composer.json of ZF modules?

I really don't want to force developers to do crazy things, or create additional files, I'm just looking for a more universal way of finding/identifying Zend Framework 2 modules. My first thought was composer.json because the modular system is already utilizing Composer. We could expand this set of "types": zf-module, zf-app, zf-lib, zf-translation.


http://getcomposer.org/doc/04-schema.md#type

type

The type of the package. It defaults to library.

Package types are used for custom installation logic. If you have a package that needs some special logic, you can define a custom type. This could be a symfony-bundle, a wordpress-plugin or a typo3-module. These types will all be specific to certain projects, and they will need to provide an installer capable of installing packages of that type.

Out of the box, composer supports three types:

  • library: This is the default. It will simply copy the files to vendor.
  • project: This denotes a project rather than a library. For example application shells like the Symfony standard edition, CMSs like the SilverStripe installer or full fledged applications distributed as packages. This can for example be used by IDEs to provide listings of projects to initialize when creating a new workspace.
  • metapackage: An empty package that contains requirements and will trigger their installation, but contains no files and will not write anything to the filesystem. As such, it does not require a dist or source key to be installable.
  • composer-plugin: A package of type composer-plugin may provide an installer for other packages that have a custom type. Read more in the dedicated article.

Only use a custom type if you need custom logic during installation. It is recommended to omit this field and have it just default to library.


But I'm not sure if type will be the best place? Another possible option would be a tag in keywords. I think it's much safer/transparent.


http://getcomposer.org/doc/04-schema.md#keywords

keywords

An array of keywords that the package is related to. These can be used for searching and filtering.

Examples:

logging
events
database
redis
templating

ZF modules rules

  1. A composed.json file is required.
  2. Create a module and don't forget to add the keyword zf-module in the keyword section of composer.json. This is not a requirement, but will help other developers/repos/apps to identify Your package as a ZF module and Your module will probably reach more users ;-)

That's just an idea.

Update

We can probably try to identify zf-modules among other libraries (listed in require/suggest) by checking
if the value of autoload => classmap contains Module.php or src/Module.php. Or a combination of this check and an additional check for a specific keyword?

    "autoload": {
        "psr-0": {
            /* ... */
        },
        "classmap": [
            "./Module.php"
        ]
    },

Proposal: Social Sharing of modules

Enable a social sharing for users like twitter facebook etc.

Just an idea and not sure if really needed. Please tell us your thoughts on this.

RSS feed

It would be useful to have an RSS feed for newly added modules

Development Status of Module

Provide an option to set the status of the module

e.g.

  • Stable
  • Alpha
  • Beta

This would encourage people to submit also unfinished modules where others can find an participate to them

FAQ

  1. How to submit modules
  2. How does scoring work
  3. Modules used for this page.

We should simply be able to add or remove faq points.
I am suggesting a new Module for this.

Propable dependencies

ZfcBase
ZfcUser
ZfcAdmin
BjyAuthorize

Pagination/listing is backwards

Currently, modules appear to be listed in order of submission. This means the newest submissions are always on the last page.

May I suggest that the order be reversed (newest first) until a ranking system is developed?

Performance Improvement

Currently parts of the page are facing huge loading times due to several repeated requests to the github api.

Locate performance bottlenecks and implement caching or over improvements.

ModuleName conflicts

If two people have chosen the same name for their module, should this be a limit on them not being able to submit theirs?

Case in point https://github.com/Domi-cc/SmartyModule was forked from https://github.com/MurgaNikolay/SmartyModule about 11 months ago.

https://github.com/Domi-cc/SmartyModule is currently in a broken state and hasn't been maintained whilst the original, https://github.com/MurgaNikolay/SmartyModule, is still fully maintained.

Unfortunately @Domi-cc registered their module on the site and as such has prevented @MurgaNikolay from doing so, as the names directly conflict.

Would a change be possible to allow them both to register their modules?
Something like changing the identifying key from the module name to the repo name maybe?
So instead of SmartyModule being the key it would be something like MurgaNikolay/SmartyModule ?

Open for discussions.

Add Github Flavored Markdown Support

Currently code blocks that are presented using the github flavored markdown will not be rendered correctly.

    ```php
    $this->foo(); 
    $this->bar();
    ```

will result into $this->foo();$this->bar(); (in lovely red color)

Considering all Modules are hosted on Github, we should support the GH flavored Markdown syntax at least for the codeblocks.

A lovely example how a description should not look like: http://modules.zendframework.com/manuakasam/SamVersioning

No sufficient permissions exception while trying to remove module from Registered Modules

Hello, I've tried to remove module which I created few months ago and published on modules.zendframework.com. I wanted to do this just to experiment and check how it will influence my "My Modules" tab (right now I have another module which does not show up there - but its another issue which is probably resolved already by this pull request)

It seems that I have no permissions to remove module which I created - AssetAliases. Look at the screen which contains exception and one notice on top of the page:

selection_001

Maybe you will have some ideas what might be wrong. As I mentioned before I also experienced problems with module detection.

Maybe those issues are somehow correlated ?

Markdown in readme - code blocks errors.

Formating license

License isn't formating well. So this is my proposals to solve the problem:

  • using pre tag
  • using markdown helper
  • just use nl2br

Organizations submit broken

Submit of organization does not work.
The check for the module is currently only fetching from the owner/member repos.

Need to refactor this against the actual requestesd repository

Unit Tests

Create unit tests for the current functionality to enable stability on the page.

Rest Api

Create a rest api for 3rd party developers.

This could be used to create a Module Manager for example.

GitHub login doesn't work

First

Then this happens

An error occurred

An error occurred during execution; please try again later.

Additional information:

Zend\Db\Adapter\Exception\InvalidQueryException

File:

/var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Db/Adapter/Driver/Pdo/Statement.php:220

Message:

Statement could not be executed

Stack trace:

#0 /var/www/vhosts/zfmodules.com/vendor/ZfcBase/src/ZfcBase/Mapper/AbstractDbMapper.php(141): Zend\Db\Adapter\Driver\Pdo\Statement->execute()
#1 /var/www/vhosts/zfmodules.com/vendor/ZfcUser/src/ZfcUser/Mapper/User.php(45): ZfcBase\Mapper\AbstractDbMapper->insert(Object(User\Entity\User), NULL, NULL)
#2 /var/www/vhosts/zfmodules.com/vendor/ScnSocialAuth/src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php(407): ZfcUser\Mapper\User->insert(Object(User\Entity\User))
#3 /var/www/vhosts/zfmodules.com/vendor/ScnSocialAuth/src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php(104): ScnSocialAuth\Authentication\Adapter\HybridAuth->githubToLocalUser(Object(Hybrid_User_Profile))
#4 [internal function]: ScnSocialAuth\Authentication\Adapter\HybridAuth->authenticate(Object(ZfcUser\Authentication\Adapter\AdapterChainEvent))
#5 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(ZfcUser\Authentication\Adapter\AdapterChainEvent))
#6 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('authenticate', Object(ZfcUser\Authentication\Adapter\AdapterChainEvent), Object(Closure))
#7 /var/www/vhosts/zfmodules.com/vendor/ZfcUser/src/ZfcUser/Authentication/Adapter/AdapterChain.php(48): Zend\EventManager\EventManager->trigger('authenticate', Object(ZfcUser\Authentication\Adapter\AdapterChainEvent), Object(Closure))
#8 /var/www/vhosts/zfmodules.com/vendor/ZfcUser/src/ZfcUser/Controller/UserController.php(124): ZfcUser\Authentication\Adapter\AdapterChain->prepareForAuthentication(Object(Zend\Http\PhpEnvironment\Request))
#9 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/Controller/AbstractActionController.php(87): ZfcUser\Controller\UserController->authenticateAction()
#10 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#11 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#12 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/Controller/AbstractController.php(108): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/DispatchListener.php(113): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#15 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#16 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#17 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#18 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/Application.php(297): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#19 /var/www/vhosts/zfmodules.com/public/index.php(11): Zend\Mvc\Application->run()
#20 {main}`

Previous exceptions:

PDOException

File:

/var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Db/Adapter/Driver/Pdo/Statement.php:218

Message:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'email'

Stack trace:

#0 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Db/Adapter/Driver/Pdo/Statement.php(218): PDOStatement->execute()
#1 /var/www/vhosts/zfmodules.com/vendor/ZfcBase/src/ZfcBase/Mapper/AbstractDbMapper.php(141): Zend\Db\Adapter\Driver\Pdo\Statement->execute()
#2 /var/www/vhosts/zfmodules.com/vendor/ZfcUser/src/ZfcUser/Mapper/User.php(45): ZfcBase\Mapper\AbstractDbMapper->insert(Object(User\Entity\User), NULL, NULL)
#3 /var/www/vhosts/zfmodules.com/vendor/ScnSocialAuth/src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php(407): ZfcUser\Mapper\User->insert(Object(User\Entity\User))
#4 /var/www/vhosts/zfmodules.com/vendor/ScnSocialAuth/src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php(104): ScnSocialAuth\Authentication\Adapter\HybridAuth->githubToLocalUser(Object(Hybrid_User_Profile))
#5 [internal function]: ScnSocialAuth\Authentication\Adapter\HybridAuth->authenticate(Object(ZfcUser\Authentication\Adapter\AdapterChainEvent))
#6 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(ZfcUser\Authentication\Adapter\AdapterChainEvent))
#7 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('authenticate', Object(ZfcUser\Authentication\Adapter\AdapterChainEvent), Object(Closure))
#8 /var/www/vhosts/zfmodules.com/vendor/ZfcUser/src/ZfcUser/Authentication/Adapter/AdapterChain.php(48): Zend\EventManager\EventManager->trigger('authenticate', Object(ZfcUser\Authentication\Adapter\AdapterChainEvent), Object(Closure))
#9 /var/www/vhosts/zfmodules.com/vendor/ZfcUser/src/ZfcUser/Controller/UserController.php(124): ZfcUser\Authentication\Adapter\AdapterChain->prepareForAuthentication(Object(Zend\Http\PhpEnvironment\Request))
#10 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/Controller/AbstractActionController.php(87): ZfcUser\Controller\UserController->authenticateAction()
#11 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#13 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#14 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/Controller/AbstractController.php(108): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#15 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/DispatchListener.php(113): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#16 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#17 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#18 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/EventManager/EventManager.php(208): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#19 /var/www/vhosts/zfmodules.com/vendor/ZF2/library/Zend/Mvc/Application.php(297): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#20 /var/www/vhosts/zfmodules.com/public/index.php(11): Zend\Mvc\Application->run()
#21 {main}

Module detection

I'm not able to register mxc-commons/MxcLayoutScheme to modules.zendframework.com.

I guess this isssue is related to the isModule() test. MxcLayoutScheme provides a non-standard module.php.

installing into vendor directory?

Why is the advice to install in a vendor directory and use the git submodule --init command.
Can you simply clone the project with the --recursive option?

Can't register new modules.

For the last days I'm trying to register my modules with modules.zendframework.com, but I see only "Sychronizing with Github" and then "No modules found".

I've cloned this repo locally, installed and configured and I was able to fetch my GitHub located modules without problems (http://zfmod.uplink-meganet.websafe.pl/).

I've tried different browser, revoked access and then authenticated again, no change.

Any idea?

Possible duplicate of #157 and #147

Module Page

Add A module page which can list more information about the selected module

  1. Readme
  2. License
  3. Ratings
  4. Comments

Download sources like packagist github etc

Contributors to this module
Owner of the module

can't submit new module

not sure if this is on my side, but when i try to submit a module i get:

Zend\Db\Adapter\Exception\InvalidQueryException
Message: Statement could not be executed

PDOException
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'description' cannot be null

i would try to fix it myself, but it looks like there are some database issues

Search Engine

The current search engine is just a like()->or->like()

Need to implement something like Lucene or Elastic search to get fast realtime search results

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.