PLACERVILLE, Calif. — At Hangtown Haven, Wednesdays were family night, and on movie night 30 to 40 residents watched DVDs on a mammoth outdoor TV.

Residents nursed one another through drug and alcohol detoxification and helped heart and stroke patients recover in their tents. The mayor championed the endeavor, churches embraced it and one police chief said it brought down crime.

But on Friday, what is believed to be California's only authorized, self-governing campground for homeless people shut down.

Hangtown Haven, the dream of a retired aerospace engineer from Orange County, opened in July 2012 on private land under a permit from the Gold Country town of Placerville, population 10,000. It served dozens of homeless people, with its own community council, a wheelchair-friendly portable toilet and a library.

"This was the most functional family I ever had by far," said Becky Nylander, a member of the camp's community council.

But town residents complained that the project had begun to attract homeless outsiders to town.

"We have a very caring, compassionate community, and word gets out," said Placerville Mayor Wendy Thomas.

A number of cities across the nation opened encampments for homeless people around the time of the Great Recession, though many were later closed. Such camps continue to operate in cities including Eugene, Ore., Portland and Seattle. Nevada City, Calif., started licensing homeless people to camp last year.

What some see as an innovative solution to an intractable problem strikes others as a blow to human dignity.

"People shouldn't have to live in tents," said Nan Roman, president of the National Alliance to End Homelessness in Washington, D.C. "We can do better."

But El Dorado County lacks shelter for its estimated 170 to 350 homeless people. The county has no year-round adult homeless shelter and only scattered transitional housing.

The local timber mill closed in 2009, and Gold Rush-inspired tourism, the town's lifeblood, remains depressed.

Placerville was named "Old Hangtown" because of its taste for frontier justice, and a dummy — lately dressed head-to-toe in pink to mark breast cancer awareness month — hangs from a noose in the middle of downtown.

Hangtown Haven's "godfather," as residents jokingly call him, is Art Edwards, the retired aerospace worker who remembers his mother feeding hobos during the Depression.

"She told me never to turn my back on those in need," Edwards said.

Edwards set up the camp's nonprofit board and brought an engineer's eye to its design.

The campsite is in a woodsy hollow on the outskirts of town. On a tour last month, Edwards pointed out plywood and pallets under the tents to keep them dry. Old billboards were strung as tarps to shield the tents when the snows came, as they did several times last year, he said.

Each tent came with an approved heater and fire extinguishers hung every few feet along the fence. Water from the 400-foot well went through a filtration system, and the landowner let the camp tap his power pole to charge cellphones and turn on appliances.

"The fire marshal was very happy," Edwards said.

The residents set their own rules: no alcohol, drugs or panhandling, and no sex offenders. Their stories, of trauma, bad choices and bad luck were sometimes harrowing.