
Research
TeamPCP Compromises Telnyx Python SDK to Deliver Credential-Stealing Malware
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.
generator-thinkphp
Advanced tools
Yeoman generator for ThinkPHP - Create ThinkPHP Project and generate Controller/Model/View for it.
Install Composer Read more about composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Install yo and generator-thinkphp Read more about Yeoman
npm install -g yo generator-thinkphp
Make a new directory, and cd into it:
mkdir my-new-project && cd $_
Run yo thinkphp to init your project, and follow the steps:
yo thinkphp
Available generators:
Create a new project using ThinkPHP and using Composer.
Example:
yo thinkphp
Generates a controller and view for your app. Command like yo thinkphp:controller [classedName] [spaceName].
The classedName is required value, without it will get error.
The default spaceName is Home and it's optional.
Example:
yo thinkphp:controller Index Home
Produces app/Home/Controller/IndexController.class.php:
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
public function index(){
//
$this->display();
}
}
Produces app/Home/View/Index/index.html:
<extend name="./base" />
<block name="content">
<h1>Index</h1>
</block>
Produces app/Home/View/base.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Home</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
</head>
<body>
<block name="content"></block>
</body>
</html>
Much like Controller generator, it generates a plain model for your Project.
Example:
yo thinkphp:model User Home
Produces app/Home/Model/UserModel.class.php:
<?php
namespace Home\Model;
use Think\Model;
class UserModel extends Model {
//
protected $tableName = 'User';
}
Create a new namespace folder for you app.
Example:
yo thinkphp:space Admin
Produces app/Admin folder and default files in your project.
Run a PHP Test Server locally.
Example:
yo thinkphp:serve
And you'll get a php server running at 127.0.0.1:3000.
Add command line tools for ThinkPHP. Just like Laravel's php artisan
MIT
FAQs
Yeoman generator for thinkphp
The npm package generator-thinkphp receives a total of 7 weekly downloads. As such, generator-thinkphp popularity was classified as not popular.
We found that generator-thinkphp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.

Security News
/Research
Widespread GitHub phishing campaign uses fake Visual Studio Code security alerts in Discussions to trick developers into visiting malicious website.