PHPackages                             su-sws/stanford\_sites\_content\_importer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. su-sws/stanford\_sites\_content\_importer

AbandonedArchivedDrupal-library

su-sws/stanford\_sites\_content\_importer
=========================================

A Drupal feature.

7.2.2(7y ago)027[1 issues](https://github.com/SU-SWS/stanford_sites_content_importer/issues)GPL-2.0+PHP

Since Jun 28Pushed 7y ago11 watchersCompare

[ Source](https://github.com/SU-SWS/stanford_sites_content_importer)[ Packagist](https://packagist.org/packages/su-sws/stanford_sites_content_importer)[ RSS](/packages/su-sws-stanford-sites-content-importer/feed)WikiDiscussions 7.x-2.x Synced yesterday

READMEChangelog (8)Dependencies (1)Versions (3)Used By (0)

[Stanford Sites Content Importer](https://github.com/SU-SWS/stanford_sites_content_importer)

##### Version: 7.x-2.2

[](#version-7x-22)

Stanford Webservices Content Importer
=====================================

[](#stanford-webservices-content-importer)

Maintainers: [sherakama](https://github.com/sherakama)

What does this do?
------------------

[](#what-does-this-do)

This collection of classes works with Stanford Web Services' content server.

Requirements
------------

[](#requirements)

A content server set up with services and UUID.

Example Server
--------------

[](#example-server)

Files
-----

[](#files)

- ImporterFieldProcessor.php
    - Needs Description.
- ImporterFieldProcessorDatetime.php
    - Needs Description.
- ImporterFieldProcessorEmail.php
    - Needs Description.
- ImporterFieldProcessorFieldCollection.php
    - Needs Description.
- ImporterFieldProcessorFile.php
    - Needs Description.
- ImporterFieldProcessorImage.php
    - Needs Description.
- ImporterFieldProcessorInterface.php
    - Needs Description.
- ImporterFieldProcessorLinkField.php
    - Needs Description.
- ImporterFieldProcessorListText.php
    - Needs Description.
- ImporterFieldProcessorNumberInteger.php
    - Needs Description.
- ImporterFieldProcessorTaxonomyTermReference.php
    - Needs Description.
- ImporterFieldProcessorText.php
    - Needs Description.
- ImporterFieldProcessorTextLong.php
    - Needs Description.
- ImporterFieldProcessorTextWithSummary.php
    - Needs Description.
- SitesContentImporter.php
    - Needs Description.

Example Usage
-------------

[](#example-usage)

**Nodes:**

```
// Import types
$content_types = array(
  'stanford_page',
  'stanford_event',
);

// Restrictions
// These entities we do not want even if they appear in the feed.
$restrict = array(
  '2efac412-06d7-42b4-bf75-74067879836c',   // Recent News Page
  'fcbec50-0449-4e2d-8a79-3f957bf101e9',    // News item
  'ea1a02a9-0564-4448-82f3-09fb1d0ae8c1',   // news item
);

$endpoint = 'https://mysite.com/endpointname';

$importer = new SitesContentImporter();
$importer->setEndpoint($endpoint);
$importer->addImportContentType($content_types);
$importer->addUuidRestrictions($restrict);
$importer->importerContentNodesRecentByType();

```

**Vocabularies:**

```
$endpoint = 'https://mysite.com/endpointname';
$importer = new SitesContentImporter();
$importer->setEndpoint($endpoint);
$importer->importVocabularyTrees();

```

**Beans:**

```
$uuids = array(
  '67045bcc-06fc-4db8-9ef4-dd0ebb4e6d72',
  '61b6f7f7-5b94-4112-b69c-07240da330f8',
  '05f729cf-a05c-446a-96ce-324237e2a5db',
  '5ee82af2-bfac-4584-a006-a0fb0661af34',
);

$endpoint = 'https://mysite.com/endpointname';

$importer = new SitesContentImporter();
$importer->setEndpoint($endpoint);
$importer->setBeanUuids($uuids);
$importer->importContentBeans();

```

**Nodes By Views &amp; Filters**

```
$filters = array('tid_raw' => array('37'));
$view_importer = new SitesContentImporterViews();
$view_importer->setEndpoint($endpoint);
$view_importer->setResource('content');
$view_importer->setFilters($filters);
$view_importer->importContentByViewsAndFilters();

```

Extending
---------

[](#extending)

You can add your own field processors by extending the ImporterFieldProcessor class with your own. The naming convention that the processor looks for is: ImporterFieldProcessorYourFieldNameInCamelCase eg: ImporterFieldProcessorFieldDateSelect

You can also register a field or property processor to run by using either:

```
$importer->addPropertyProcessor(array('property_name' => 'PHPClass'));
$importer->addFieldProcessor(array('field_name' => 'PHPClass'));

```

PHPClass needs to be a field or property processor that extends ImporterFieldProcessor and has the process() method.

```
require_once "ImporterPropertyProcessorTrimAlias.php";
$view_importer->addPropertyProcessor(array('url_alias' => 'ImporterPropertyProcessorTrimAlias'));

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~250 days

Total

2

Last Release

2625d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/680d4f5083667895b9323d1f792118734589007acc782a6e60e63d95f87d6081?d=identicon)[stanfordwebservices](/maintainers/stanfordwebservices)

---

Top Contributors

[![sherakama](https://avatars.githubusercontent.com/u/550602?v=4)](https://github.com/sherakama "sherakama (57 commits)")[![cjwest](https://avatars.githubusercontent.com/u/284440?v=4)](https://github.com/cjwest "cjwest (5 commits)")[![jbickar](https://avatars.githubusercontent.com/u/821106?v=4)](https://github.com/jbickar "jbickar (3 commits)")[![boznik](https://avatars.githubusercontent.com/u/2373119?v=4)](https://github.com/boznik "boznik (2 commits)")[![kmakitan](https://avatars.githubusercontent.com/u/13700300?v=4)](https://github.com/kmakitan "kmakitan (2 commits)")[![pookmish](https://avatars.githubusercontent.com/u/7185045?v=4)](https://github.com/pookmish "pookmish (2 commits)")

---

Tags

d7

### Embed Badge

![Health badge](/badges/su-sws-stanford-sites-content-importer/health.svg)

```
[![Health](https://phpackages.com/badges/su-sws-stanford-sites-content-importer/health.svg)](https://phpackages.com/packages/su-sws-stanford-sites-content-importer)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
