PHP Classes

Phady Developer Tools: Simplify using Phady Zephir framework from PHP

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 42 All time: 10,870 This week: 206Up
Version License PHP version Categories
phady-devtools 1.0The PHP License5PHP 5, Libraries, Code Generation
Description 

Author

This package can simplify using Phady Zephir framework from PHP.

Currently it provides PHP classes equivalent to the classes of the framework originally written in Zephir.

The PHP classes are empty, so they can serve only to help IDE to autocomplete when calling these classes from PHP code.

It can also generate files to create new projects based on the Phady framework.

Picture of Alien Fernandez
  Performance   Level  
Name: Alien Fernandez <contact>
Classes: 3 packages by
Country: Cuba Cuba
Age: 39
All time rank: 405411 in Cuba Cuba
Week rank: 131 Up1 in Cuba Cuba Up

Example

#!/usr/bin/env php
<?php

/*
  +------------------------------------------------------------------------+
  | Phady Developer Tools |
  +------------------------------------------------------------------------+
  | Copyright (c) 2015 |
  +------------------------------------------------------------------------+
  | Phady Framework is a complement of Phalcon Framework |
  | |
  +------------------------------------------------------------------------+
  | Authors: Alien fernandez Fuentes <alienfernandez85@gmail.com> |
  +------------------------------------------------------------------------+
  */

error_reporting(E_ALL);

use
Phady\Script;
use
Phady\Version;
use
Phady\Exception as PhadyException;

use
Phady\Script\Color;
use
Phady\Commands\CommandsListener;
use
Phalcon\Loader;
use
Phalcon\Events\Manager as EventsManager;

try {

   
$extensionLoaded = true;
    if (!
extension_loaded('phalcon')) {
       
$extensionLoaded = false;
        throw new
Exception('Phalcon extension isn\'t installed, follow these instructions to install it: http://docs.phalconphp.com/en/latest/reference/install.html');
    }
    if (!
extension_loaded('phady')) {
       
$extensionLoaded = false;
        throw new
Exception('Phady extension isn\'t installed, follow these instructions to install it: URL');
    }

   
$loader = new Loader();

   
$loader->registerDirs(array(
       
__DIR__ . '/scripts/'
   
));

   
$loader->registerNamespaces(array(
       
'Phady' => __DIR__ . '/scripts/'
   
));

   
$loader->register();

    if (
Version::getId() < Script::COMPATIBLE_VERSION) {
        throw new
PhadyException('Your Phady version isn\'t compatible with Developer Tools, download the latest at: URL');
    }

    if (!
defined('TEMPLATE_PATH')) {
       
define('TEMPLATE_PATH', __DIR__ . '/templates');
    }

   
$vendor = sprintf('Phady DevTools (%s)', Version::get());
    print
PHP_EOL . Color::colorize($vendor, Color::FG_GREEN, Color::AT_BOLD) . PHP_EOL . PHP_EOL;

   
$eventsManager = new EventsManager();

   
$eventsManager->attach('command', new CommandsListener());

   
$script = new Script($eventsManager);

   
$commandsToEnable = array(
       
'\Phady\Commands\Builtin\Project'
   
);
    foreach (
$commandsToEnable as $command) {
       
$script->attach(new $command($script, $eventsManager));
    }
   
//print_r(1111);die;

   
$script->run();

} catch (
PhadyException $e) {
    if (
$extensionLoaded) {
        print
Color::error($e->getMessage()) . PHP_EOL;
    } else {
        print
'ERROR: ' . $e->getMessage() . PHP_EOL;
    }

} catch (
Exception $e) {
    if (
$extensionLoaded) {
        print
Color::error($e->getMessage()) . PHP_EOL;
    } else {
        print
'ERROR: ' . $e->getMessage() . PHP_EOL;
    }
}


Details

What are Devtools?

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phady framework.

Requirements

  • PHP >= 5.3.0
  • Phalcon >= 1.3.0

Installation via Git

Phady Devtools can be installed by using Git.

Just clone the repo and checkout the current branch:

cd ~
git clone https://github.com/alienfernandez/phady-devtools.git
cd phady-devtools

  Files folder image Files (176)  
File Role Description
Files folder imagedocs (1 file)
Files folder imageide (1 directory)
Files folder imagescripts (2 directories)
Files folder imagetemplates (1 file)
Accessible without login Plain text file phady-completion.bash Data Auxiliary data
Accessible without login Plain text file phady.bat Data Auxiliary data
Accessible without login Plain text file phady.pear Example Example script
Accessible without login Plain text file phady.php Example Example script
Accessible without login Plain text file phady.sh Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (176)  /  docs  
File Role Description
  Accessible without login Plain text file LICENSE Lic. License text

  Files folder image Files (176)  /  ide  
File Role Description
Files folder image1.1.0 (1 directory)

  Files folder image Files (176)  /  ide  /  1.1.0  
File Role Description
Files folder imagePhady (2 files, 13 directories)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  
File Role Description
Files folder imageCache (2 files)
Files folder imageCommon (2 directories)
Files folder imageConfig (1 file)
Files folder imageConsole (1 file)
Files folder imageCore (5 files)
Files folder imageDb (1 file)
Files folder imageHttp (3 files)
Files folder imageMail (1 file)
Files folder imageMessaging (1 file, 1 directory)
Files folder imageReport (1 directory)
Files folder imageRoute (1 file)
Files folder imageSecurity (5 files, 6 directories)
Files folder imageUtil (8 files)
  Plain text file Exception.php Class Class source
  Plain text file Version.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Cache  
File Role Description
  Plain text file CacheHandler.php Class Class source
  Plain text file CacheInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Common  
File Role Description
Files folder imageControllers (2 files)
Files folder imageEntities (1 file)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Common  /  Controllers  
File Role Description
  Plain text file AccessDeniedController.php Class Class source
  Plain text file ControllerBase.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Common  /  Entities  
File Role Description
  Plain text file ModelBase.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Config  
File Role Description
  Plain text file Yaml.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Console  
File Role Description
  Plain text file Command.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Core  
File Role Description
  Plain text file Kernel.php Class Class source
  Plain text file KernelCli.php Class Class source
  Plain text file KernelMvc.php Class Class source
  Plain text file NamespaceHandler.php Class Class source
  Plain text file Parameter.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Db  
File Role Description
  Plain text file DatabaseHandler.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Http  
File Role Description
  Plain text file IpUtils.php Class Class source
  Plain text file RequestMatcher.php Class Class source
  Plain text file RequestMatcherInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Mail  
File Role Description
  Plain text file MailReader.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Messaging  
File Role Description
Files folder imageAdapter (2 files)
  Plain text file Messaging.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Messaging  /  Adapter  
File Role Description
  Plain text file MessagingInterface.php Class Class source
  Plain text file RabbitMQ.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Report  
File Role Description
Files folder imageExcel (1 directory)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Report  /  Excel  
File Role Description
Files folder imageTemplate (1 file)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Report  /  Excel  /  Template  
File Role Description
  Plain text file ExcelMultiTable.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Route  
File Role Description
  Plain text file Router.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  
File Role Description
Files folder imageBundle (2 directories)
Files folder imageCore (5 directories)
Files folder imageEncoder (8 files)
Files folder imageException (16 files)
Files folder imageFactory (3 files)
Files folder imageHttp (6 directories)
  Plain text file Exception.php Class Class source
  Plain text file Firewall.php Class Class source
  Plain text file FirewallContext.php Class Class source
  Plain text file FirewallMap.php Class Class source
  Plain text file SecurityExtension.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Bundle  
File Role Description
Files folder imageModel (2 files, 2 directories)
Files folder imageServices (1 file)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Bundle  /  Model  
File Role Description
Files folder imageEntity (2 files)
Files folder imageRepository (2 files)
  Plain text file RoleCore.php Class Class source
  Plain text file UserCore.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Bundle  /  Model  /  Entity  
File Role Description
  Plain text file Roles.php Class Class source
  Plain text file UserRole.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Bundle  /  Model  /  Repository  
File Role Description
  Plain text file RoleRepository.php Class Class source
  Plain text file UserRepository.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Bundle  /  Services  
File Role Description
  Plain text file UserService.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  
File Role Description
Files folder imageAuthentication (5 files, 3 directories)
Files folder imageAuthorization (4 files, 1 directory)
Files folder imageModels (1 directory)
Files folder imageRole (4 files)
Files folder imageUser (8 files, 1 directory)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authentication  
File Role Description
Files folder imageModel (1 file)
Files folder imageProvider (7 files)
Files folder imageToken (5 files, 1 directory)
  Plain text file AuthenticationManagerInterface.php Class Class source
  Plain text file AuthenticationProviderManager.php Class Class source
  Plain text file AuthenticationTrustResolver.php Class Class source
  Plain text file AuthenticationTrustResolverInterface.php Class Class source
  Plain text file SimpleAuthenticatorInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authentication  /  Model  
File Role Description
  Plain text file Acl.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authentication  /  Provider  
File Role Description
  Plain text file AnonymousAuthenticationProvider.php Class Class source
  Plain text file AuthenticationProviderInterface.php Class Class source
  Plain text file DaoAuthenticationProvider.php Class Class source
  Plain text file EntityUserProvider.php Class Class source
  Plain text file SimpleAuthenticationProvider.php Class Class source
  Plain text file UserAuthenticationProvider.php Class Class source
  Plain text file UserProvider.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authentication  /  Token  
File Role Description
Files folder imageStorage (2 files)
  Plain text file AbstractToken.php Class Class source
  Plain text file AnonymousToken.php Class Class source
  Plain text file RememberMeToken.php Class Class source
  Plain text file TokenInterface.php Class Class source
  Plain text file UsernamePasswordToken.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authentication  /  Token  /  Storage  
File Role Description
  Plain text file TokenStorage.php Class Class source
  Plain text file TokenStorageInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authorization  
File Role Description
Files folder imageVoter (5 files)
  Plain text file AccessDecisionManager.php Class Class source
  Plain text file AccessDecisionManagerInterface.php Class Class source
  Plain text file AuthorizationChecker.php Class Class source
  Plain text file AuthorizationCheckerInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Authorization  /  Voter  
File Role Description
  Plain text file AbstractVoter.php Class Class source
  Plain text file AuthenticatedVoter.php Class Class source
  Plain text file RoleHierarchyVoter.php Class Class source
  Plain text file RoleVoter.php Class Class source
  Plain text file VoterInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Models  
File Role Description
Files folder imageEntities (8 files)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Models  /  Entities  
File Role Description
  Plain text file Actions.php Class Class source
  Plain text file Groups.php Class Class source
  Plain text file Modules.php Class Class source
  Plain text file Permissions.php Class Class source
  Plain text file Resources.php Class Class source
  Plain text file Roles.php Class Class source
  Plain text file UserRole.php Class Class source
  Plain text file Users.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  Role  
File Role Description
  Plain text file Role.php Class Class source
  Plain text file RoleHierarchyInterface.php Class Class source
  Plain text file RoleInterface.php Class Class source
  Plain text file SwitchUserRole.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  User  
File Role Description
Files folder imageFactory (3 files)
  Plain text file AdvancedUserInterface.php Class Class source
  Plain text file ChainUserProvider.php Class Class source
  Plain text file EquatableInterface.php Class Class source
  Plain text file InMemoryUserProvider.php Class Class source
  Plain text file UserChecker.php Class Class source
  Plain text file UserCheckerInterface.php Class Class source
  Plain text file UserInterface.php Class Class source
  Plain text file UserProviderInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Core  /  User  /  Factory  
File Role Description
  Plain text file EntityFactory.php Class Class source
  Plain text file InMemoryFactory.php Class Class source
  Plain text file UserProviderFactoryInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Encoder  
File Role Description
  Plain text file BasePasswordEncoder.php Class Class source
  Plain text file BCryptPasswordEncoder.php Class Class source
  Plain text file EncoderAwareInterface.php Class Class source
  Plain text file EncoderFactory.php Class Class source
  Plain text file EncoderFactoryInterface.php Class Class source
  Plain text file MessageDigestPasswordEncoder.php Class Class source
  Plain text file PasswordEncoderInterface.php Class Class source
  Plain text file PlaintextPasswordEncoder.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Exception  
File Role Description
  Plain text file AccessDeniedException.php Class Class source
  Plain text file AccountExpiredException.php Class Class source
  Plain text file AccountStatusException.php Class Class source
  Plain text file AuthenticationCred...tFoundException.php Class Class source
  Plain text file AuthenticationException.php Class Class source
  Plain text file AuthenticationServiceException.php Class Class source
  Plain text file BadCredentialsException.php Class Class source
  Plain text file CredentialsExpiredException.php Class Class source
  Plain text file DisabledException.php Class Class source
  Plain text file InsufficientAuthenticationException.php Class Class source
  Plain text file InvalidCsrfTokenException.php Class Class source
  Plain text file LockedException.php Class Class source
  Plain text file LogoutException.php Class Class source
  Plain text file ProviderNotFoundException.php Class Class source
  Plain text file UnsupportedUserException.php Class Class source
  Plain text file UsernameNotFoundException.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Factory  
File Role Description
  Plain text file AbstractFactory.php Class Class source
  Plain text file FormLoginFactory.php Class Class source
  Plain text file SecurityFactoryInterface.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  
File Role Description
Files folder imageAuthentication (4 files)
Files folder imageAuthorization (2 files)
Files folder imageEntryPoint (2 files)
Files folder imageEvent (1 file)
Files folder imageFirewall (8 files)
Files folder imageLogout (4 files)

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  /  Authentication  
File Role Description
  Plain text file AuthenticationFail...andlerInterface.php Class Class source
  Plain text file AuthenticationSucc...andlerInterface.php Class Class source
  Plain text file DefaultAuthenticationFailureHandler.php Class Class source
  Plain text file DefaultAuthenticationSuccessHandler.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  /  Authorization  
File Role Description
  Plain text file AccessDeniedHandlerInterface.php Class Class source
  Plain text file AccessDeniedListener.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  /  EntryPoint  
File Role Description
  Plain text file AuthenticationEntryPointInterface.php Class Class source
  Plain text file FormAuthenticationEntryPoint.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  /  Event  
File Role Description
  Plain text file InteractiveLoginEvent.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  /  Firewall  
File Role Description
  Plain text file AbstractAuthenticationListener.php Class Class source
  Plain text file AccessListener.php Class Class source
  Plain text file AnonymousAuthenticationListener.php Class Class source
  Plain text file ChannelListener.php Class Class source
  Plain text file ContextListener.php Class Class source
  Plain text file ListenerInterface.php Class Class source
  Plain text file LogoutListener.php Class Class source
  Plain text file UsernamePasswordFo...icationListener.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Security  /  Http  /  Logout  
File Role Description
  Plain text file DefaultLogoutSuccessHandler.php Class Class source
  Plain text file LogoutHandlerInterface.php Class Class source
  Plain text file LogoutSuccessHandlerInterface.php Class Class source
  Plain text file SessionLogoutHandler.php Class Class source

  Files folder image Files (176)  /  ide  /  1.1.0  /  Phady  /  Util  
File Role Description
  Plain text file DateTime.php Class Class source
  Plain text file File.php Class Class source
  Plain text file Model.php Class Class source
  Plain text file Out.php Class Class source
  Plain text file Random.php Class Class source
  Plain text file Text.php Class Class source
  Plain text file Tools.php Class Class source
  Plain text file Uuid.php Class Class source

  Files folder image Files (176)  /  scripts  
File Role Description
Files folder imagePhady (1 file, 5 directories)
Files folder imagePhalcon (1 directory)

  Files folder image Files (176)  /  scripts  /  Phady  
File Role Description
Files folder imageBuilder (5 files, 1 directory)
Files folder imageCommands (5 files, 1 directory)
Files folder imageGenerator (1 file)
Files folder imageScript (2 files)
Files folder imageVersion (1 file)
  Plain text file Script.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Builder  
File Role Description
Files folder imageProject (3 files)
  Plain text file AdministradorArchivo.php Class Class source
  Plain text file BuilderException.php Class Class source
  Plain text file Component.php Class Class source
  Plain text file Controller.php Class Class source
  Plain text file Project.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Builder  /  Project  
File Role Description
  Plain text file Module.php Class Class source
  Plain text file ModulesProject.php Class Class source
  Plain text file ProjectBuilder.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Commands  
File Role Description
Files folder imageBuiltin (2 files)
  Plain text file Command.php Class Class source
  Plain text file CommandInterface.php Class Class source
  Plain text file CommandsException.php Class Class source
  Plain text file CommandsInterface.php Class Class source
  Plain text file CommandsListener.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Commands  /  Builtin  
File Role Description
  Plain text file Module.php Class Class source
  Plain text file Project.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Generator  
File Role Description
  Plain text file Stub.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Script  
File Role Description
  Plain text file Color.php Class Class source
  Plain text file ScriptException.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phady  /  Version  
File Role Description
  Plain text file Item.php Class Class source

  Files folder image Files (176)  /  scripts  /  Phalcon  
File Role Description
Files folder imageBuilder (4 files)

  Files folder image Files (176)  /  scripts  /  Phalcon  /  Builder  
File Role Description
  Plain text file BuilderException.php Class Class source
  Plain text file Component.php Class Class source
  Plain text file Controller.php Class Class source
  Plain text file Model.php Class Class source

  Files folder image Files (176)  /  templates  
File Role Description
  Accessible without login Plain text file webtools.config.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:42
This week:0
All time:10,870
This week:206Up