npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kalabox-app-php

v0.12.0-beta.1

Published

A Kalabox app plugin to spin up php sites.

Downloads

14

Readme

Kalabox Php App

Overview

By default Kalabox can create apps to run various PHP things like Wordpress or Drupal.

Here are some of the things you can do


Global commands that can be run from anywhere
  create
      drupal7      Creates a drupal7 app
      drupal8      Creates a drupal8 app
      pantheon     Creates a Pantheon app.
  env              Print Kalabox environmental vars.
  list             Display list of apps.
  update           Run this after you update your Kalabox code.
  version          Display the kbox version.

Actions that can be performed on this app
  config           Display the kbox application's configuration.
  destroy          Completely destroys and removes an app.
  rebuild          Rebuilds your app while maintaining your app data.
  restart          Stop and then start a running kbox application.
  services         Display connection info for services.
  start            Start an installed kbox application.
  stop             Stop a running kbox application.

Commands and tools this app can use
  bower            Run a bower command
  composer         Run a composer cli command
  drush            Run a drush command on your codebase
  git              Run a git command on your codebase
  grunt            Run a grunt command
  gulp             Run a gulp command
  mysql            Drop into a mysql shell
  node             Run a node command
  npm              Run a npm command
  php              Run a php cli command
  rsync            Run a rsync command on your files directory
  terminal         'ssh' into your appserver

Options:
  -h, --help     Display help message.                                 [boolean]
  -v, --verbose  Use verbose output.                                   [boolean]

Creating a Drupal app

cd /my/apps/directory

# Create drupal 7 app
kbox create drupal7

# Create drupal 8 app
kbox create drupal8

Options you can use during a create

Options:
  -h, --help     Display help message.                                 [boolean]
  -v, --verbose  Use verbose output.                                   [boolean]
  --name         The name of your app.                                  [string]
  --dir          Creates the app in this directory. Defaults to CWD.    [string]

Getting to your Database

To get connection info so you can access your database from an external tool like SequelPro do the following:

cd /path/to/app
kbox services
[
  {
    "name": "appserver",
    "project": "test",
    "url": [
      "http://test.kbox"
    ]
  },
  {
    "name": "db",
    "project": "test",
    "credentials": {
      "database": "drupal",
      "user": "drupal",
      "password": "drupal",
      "host": "10.13.37.100",
      "port": "32836"
    }
  }
]

Or to drop into a mysql shell

cd /path/to/app
kbox mysql

# Import DB
kbox mysql drupal < /path/to/db.sql

Other Resources


(C) 2016 Kalabox Inc and friends